/* Custom Colors */
:root {
    --page-register-card-bg: #17191F;
    --page-register-background: #0D0E12;
    --page-register-text-main: #FFF3E6;
    --page-register-border: #A84F0C;
    --page-register-glow: #FFB04D;
    --page-register-deep-orange: #D96800;
    --page-register-primary-color: #FF8C1A;
    --page-register-secondary-color: #FFA53A;
}

.page-register {
    background-color: var(--page-register-background); /* Dark background from custom colors */
    color: var(--page-register-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has --header-offset */
    padding-bottom: 40px;
    background-color: var(--page-register-background);
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

.page-register__hero-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    margin-top: 20px;
}

.page-register__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--page-register-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 100%;
}

.page-register__hero-description {
    font-size: 1.2em;
    color: var(--page-register-text-main);
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-register__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--page-register-secondary-color) 0%, var(--page-register-deep-orange) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: var(--page-register-primary-color);
    text-decoration: none;
    border: 2px solid var(--page-register-primary-color);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    margin-left: 20px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-secondary:hover {
    background-color: var(--page-register-primary-color);
    color: #ffffff;
}

/* Section Title */
.page-register__section-title {
    font-size: 2.2em;
    color: var(--page-register-text-main);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: 700;
    line-height: 1.3;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
    background-color: var(--page-register-background);
}

.page-register__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-register__benefit-card {
    background-color: var(--page-register-card-bg);
    border: 1px solid var(--page-register-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--page-register-text-main);
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
}

.page-register__benefit-card img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: var(--page-register-primary-color);
    margin-bottom: 15px;
}

/* Register Form Section */
.page-register__register-form-section {
    padding: 60px 0;
    background-color: var(--page-register-background);
}

.page-register__form-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-register-text-main);
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--page-register-card-bg);
    border: 1px solid var(--page-register-border);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-group {
    margin-bottom: 25px;
}

.page-register__form-label {
    display: block;
    font-size: 1em;
    color: var(--page-register-text-main);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--page-register-border);
    border-radius: 5px;
    background-color: #0D0E12;
    color: var(--page-register-text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: rgba(255, 243, 230, 0.7);
}

.page-register__form-submit-btn {
    width: 100%;
    margin-top: 20px;
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: var(--page-register-text-main);
}

.page-register__login-link {
    color: var(--page-register-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__login-link:hover {
    text-decoration: underline;
}

/* Security Assurance Section */
.page-register__security-assurance-section {
    padding: 60px 0;
    background-color: var(--page-register-background);
}

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

.page-register__security-item {
    background-color: var(--page-register-card-bg);
    border: 1px solid var(--page-register-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-register-text-main);
}

.page-register__security-item img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.page-register__security-title {
    font-size: 1.4em;
    color: var(--page-register-primary-color);
    margin-bottom: 10px;
}

.page-register__support-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* CTA Section */
.page-register__cta-section {
    padding: 60px 0;
    background-color: var(--page-register-background);
    text-align: center;
}

.page-register__cta-section img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.page-register__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-register-text-main);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background-color: var(--page-register-background);
}

.page-register__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-register-border);
  overflow: hidden;
  background: var(--page-register-card-bg);
  color: var(--page-register-text-main);
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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(255, 140, 26, 0.1);
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-register-primary-color);
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-register-text-main);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: rgba(23, 25, 31, 0.8);
  border-radius: 0 0 5px 5px;
  color: var(--page-register-text-main);
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 60px 0 80px;
    background-color: var(--page-register-background);
    text-align: center;
}

/* General Image and Button Responsive Styles */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.5em;
    }

    .page-register__section-title {
        font-size: 2em;
    }

    .page-register__benefits-grid,
    .page-register__security-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-register__registration-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 15px;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding-bottom: 20px;
    }
    .page-register__hero-section img {
        object-fit: contain !important; /* Ensure image is fully visible */
        max-height: 400px !important;
    }
    .page-register__main-title {
        font-size: 1.8em !important;
        margin-bottom: 10px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0;
        margin-bottom: 15px; /* Stack buttons */
        display: block;
        width: 100%;
    }
    .page-register__hero-content .page-register__btn-secondary {
        margin-top: 15px; /* If two buttons are present, add space */
    }

    /* Section Titles */
    .page-register__section-title {
        font-size: 1.7em !important;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 40px 0;
    }
    .page-register__benefit-card {
        padding: 20px;
    }
    .page-register__benefit-title {
        font-size: 1.3em;
    }

    /* Register Form Section */
    .page-register__register-form-section {
        padding: 40px 0;
    }
    .page-register__registration-form {
        padding: 20px;
    }
    .page-register__form-group {
        margin-bottom: 20px;
    }

    /* Security Assurance Section */
    .page-register__security-assurance-section {
        padding: 40px 0;
    }
    .page-register__security-item {
        padding: 20px;
    }
    .page-register__security-title {
        font-size: 1.2em;
    }

    /* CTA Section */
    .page-register__cta-section {
        padding: 40px 0;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 40px 0;
    }
    details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
    .page-register__faq-qtext { font-size: 15px; }
    details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }

    /* Final CTA Section */
    .page-register__final-cta-section {
        padding: 40px 0 60px;
    }

    /* General Image Responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Button Responsive */
    .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__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
}