:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B; /* This is the body background from shared.css */
}

/* General page styling */
.page-register {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Main text color for the page content on dark body bg */
    background-color: transparent; /* Body background handled by shared.css */
    line-height: 1.6;
    padding-bottom: 50px;
}

.page-register__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-register__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-register__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-color);
    border-radius: 2px;
}

.page-register__content-area {
    background-color: var(--card-bg); /* Use card background for content blocks */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-register__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 17px;
}

.page-register__text-block strong {
    color: var(--text-main);
}

.page-register__text-block ul,
.page-register__text-block ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-register__text-block li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.page-register__text-block h3 {
    color: var(--text-main);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.page-register__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-register__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-register__intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Limit overall button group width */
    margin-left: auto;
    margin-right: auto;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-register__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-register__btn-secondary {
    background: var(--text-main); /* White background for contrast */
    color: var(--primary-color); /* Primary brand color for text */
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: var(--text-main);
}

/* Image wrappers */
.page-register__image-wrapper {
    margin: 30px 0;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* List styling */
.page-register__step-list,
.page-register__benefit-list,
.page-register__security-features {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.page-register__step-list .page-register__list-item,
.page-register__benefit-list .page-register__list-item,
.page-register__security-features .page-register__list-item {
    background-color: var(--deep-navy-color); /* Slightly darker bg for list items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.page-register__step-list .page-register__list-item:hover,
.page-register__benefit-list .page-register__list-item:hover,
.page-register__security-features .page-register__list-item:hover {
    transform: translateY(-5px);
}

.page-register__step-list .page-register__list-item strong,
.page-register__benefit-list .page-register__list-item strong,
.page-register__security-features .page-register__list-item strong {
    color: var(--text-main);
    font-size: 19px;
    display: block;
    margin-bottom: 10px;
}

.page-register__sub-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-register__faq-list {
    background-color: transparent; /* FAQ items have their own background */
    padding: 0;
    border: none;
    box-shadow: none;
}

details.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 10px; /* Increased border-radius for FAQ items */
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg); /* Card background for FAQ items */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
details.page-register__faq-item summary.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Adjusted padding */
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main); /* Main text color for question */
    font-size: 18px; /* Larger font size for questions */
    font-weight: 600;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
    display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
    background: rgba(var(--primary-color), 0.2); /* Slightly lighter hover for dark bg */
}
.page-register__faq-qtext {
    flex: 1;
    font-size: inherit; /* Inherit from summary */
    font-weight: inherit;
    line-height: 1.5;
    text-align: left;
}
.page-register__faq-toggle {
    font-size: 28px; /* Larger toggle icon */
    font-weight: bold;
    color: var(--gold-color); /* Gold color for toggle */
    flex-shrink: 0;
    margin-left: 20px; /* Adjusted margin */
    width: 32px; /* Larger width */
    height: 32px; /* Larger height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color); /* Primary color background for toggle */
    border-radius: 50%;
    border: 1px solid var(--gold-color);
}
details.page-register__faq-item .page-register__faq-answer {
    padding: 0 25px 25px; /* Adjusted padding */
    background: var(--deep-navy-color); /* Darker background for answer */
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary); /* Secondary text color for answer */
}
.page-register__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Final CTA Section */
.page-register__cta-final {
    text-align: center;
    padding-top: 60px;
}

.page-register__cta-buttons--bottom {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-register__cta-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-register__section {
        padding: 20px 15px;
    }

    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-register__content-area {
        padding: 20px;
    }

    .page-register__hero-section {
        padding-bottom: 30px;
        padding-top: 10px; /* Still small padding, body handles header offset */
    }

    .page-register__hero-image img {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Remove aspect ratio constraint */
        width: 100% !important;
        height: auto !important;
    }

    .page-register__main-title {
        font-size: clamp(28px, 8vw, 40px); /* Adjust clamp for mobile */
        margin-bottom: 15px;
    }

    .page-register__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100%;
        padding: 0 15px; /* Add padding to container */
        box-sizing: border-box;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important; /* Full width for buttons on mobile */
        max-width: 100% !important;
        font-size: 16px;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__image-wrapper {
        margin: 20px 0;
        padding: 0 15px; /* Add padding to image container */
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .page-register__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__text-block p,
    .page-register__text-block li {
        font-size: 15px;
    }

    .page-register__text-block h3 {
        font-size: 20px;
    }

    .page-register__step-list .page-register__list-item strong,
    .page-register__benefit-list .page-register__list-item strong,
    .page-register__security-features .page-register__list-item strong {
        font-size: 17px;
    }

    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px 18px;
        font-size: 16px;
    }
    .page-register__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 28px;
        height: 28px;
    }
    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 18px 18px;
    }
    .page-register__faq-answer p {
        font-size: 15px;
    }

    /* Ensure all content containers are responsive */
    .page-register__content-area,
    .page-register__text-block,
    .page-register__faq-list,
    .page-register__cta-buttons--bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Specific override for .page-register__content-area inside .page-register__registration-guide, etc. */
    .page-register__registration-guide .page-register__content-area,
    .page-register__why-register .page-register__content-area,
    .page-register__benefits .page-register__content-area,
    .page-register__security .page-register__content-area,
    .page-register__faq .page-register__faq-list,
    .page-register__cta-final .page-register__content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Responsive styles for tablet (max-width: 1024px) - also apply where needed */
@media (max-width: 1024px) {
    .page-register__section {
        padding: 30px 20px;
    }
    .page-register__hero-image img {
        object-fit: contain;
    }
    .page-register__main-title {
        font-size: clamp(30px, 6vw, 45px);
    }
    .page-register__intro-text {
        font-size: 17px;
    }
}