/* style/register.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border-light: #e0e0e0;
    --bg-light: #f9f9f9;
}

.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

.page-register__section {
    padding: 60px 20px;
    text-align: center;
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-register__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color), #26A9E0CC);
    color: var(--text-light);
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-register__main-title {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-register__intro-text {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background: var(--login-color); /* Using login color for primary CTA */
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-register__btn-primary:hover {
    background: #d46c06;
    border-color: #d46c06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-register__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__why-join .page-register__section-title,
.page-register__app-advantages .page-register__section-title,
.page-register__security-privacy .page-register__section-title,
.page-register__faq-section .page-register__section-title {
    color: var(--primary-color);
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-description,
.page-register__dark-section .page-register__feature-title,
.page-register__dark-section .page-register__feature-text,
.page-register__dark-section .page-register__step-title,
.page-register__dark-section .page-register__step-text,
.page-register__dark-section .page-register__bonus-title,
.page-register__dark-section .page-register__bonus-text {
    color: var(--text-light);
}

.page-register__dark-section {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-register__light-bg {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-register__features-grid,
.page-register__advantages-grid,
.page-register__bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__feature-item,
.page-register__advantage-item,
.page-register__bonus-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__dark-section .page-register__feature-item,
.page-register__dark-section .page-register__advantage-item,
.page-register__dark-section .page-register__bonus-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-register__feature-item:hover,
.page-register__advantage-item:hover,
.page-register__bonus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-register__feature-image,
.page-register__app-image,
.page-register__bonus-image,
.page-register__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-register__feature-title,
.page-register__advantage-title,
.page-register__bonus-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-register__dark-section .page-register__feature-title,
.page-register__dark-section .page-register__advantage-title,
.page-register__dark-section .page-register__bonus-title {
    color: var(--text-light);
}

.page-register__feature-text,
.page-register__advantage-text,
.page-register__bonus-text {
    font-size: 16px;
    color: var(--text-dark);
}

.page-register__dark-section .page-register__feature-text,
.page-register__dark-section .page-register__advantage-text,
.page-register__dark-section .page-register__bonus-text {
    color: var(--text-light);
}

.page-register__how-to-register .page-register__section-title {
    color: var(--text-light);
}

.page-register__steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__step-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    padding-top: 60px;
}

.page-register__step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--login-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.page-register__step-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-register__step-text {
    font-size: 16px;
    color: var(--text-light);
}

.page-register__image-center {
    margin-top: 50px;
    margin-bottom: 30px;
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__security-list li {
    background: var(--bg-light);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-register__security-list li strong {
    color: var(--primary-color);
}

/* FAQ Section Styles */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: var(--bg-light);
}

.page-register__faq-question:active {
  background: #eeeeee;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 15px;
}

.page-register__final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), #004D7A);
    color: var(--text-light);
}

.page-register__final-cta .page-register__section-title,
.page-register__final-cta .page-register__section-description {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 40px;
    }
    .page-register__section-title {
        font-size: 30px;
    }
    .page-register__intro-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__section {
        padding: 40px 15px;
    }
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__hero-image img {
        border-radius: 4px;
    }
    .page-register__main-title {
        font-size: 32px;
    }
    .page-register__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-register__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-register__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__features-grid,
    .page-register__advantages-grid,
    .page-register__bonus-grid,
    .page-register__steps-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-register__feature-item,
    .page-register__advantage-item,
    .page-register__bonus-item,
    .page-register__step-item {
        padding: 20px;
    }
    .page-register__step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .page-register__step-title {
        font-size: 20px;
    }
    .page-register__security-list li {
        padding: 15px;
        font-size: 15px;
    }
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-register__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-register__faq-answer {
        padding: 0 15px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }
}