/* style/register.css */

/* General styling for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
  line-height: 1.6;
}

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

/* Headings */
.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-register__card-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-register__section-description,
.page-register__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
}

.page-register__card-text {
    text-align: left; /* Override for specific card text alignment */
}


/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: #08160F; /* Background */
}

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

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 20px;
}

.page-register__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

/* CTA Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 200, 100, 0.4);
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 100, 0.5);
}

.page-register__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2AD16F; /* A lighter shade of primary for contrast */
  margin-left: 20px;
}

.page-register__btn-secondary:hover {
  background: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}


/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background: #0A4B2C; /* Deep Green - slightly darker for section contrast */
}

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

.page-register__benefit-card {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-register__benefit-icon {
  width: 100px; /* Example size, adjust as needed */
  height: auto;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

/* How to Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    background: #08160F; /* Background */
}

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

.page-register__step-card {
    background: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    text-align: left;
}

.page-register__step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #57E38D; /* Glow */
    margin-bottom: 15px;
}

.page-register__inline-link {
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: 600;
}

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

.page-register__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-register__registration-guide-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Registration Form Section */
.page-register__registration-form-section {
    padding: 80px 0;
    background: #0A4B2C; /* Deep Green */
}

.page-register__registration-form {
    max-width: 600px;
    margin: 50px auto 20px auto;
    background: #11271B; /* Card BG */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    font-size: 1.05rem;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    background: #08160F; /* Background - slightly lighter for input */
    color: #F2FFF6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-register__form-input:focus {
    outline: none;
    border-color: #57E38D; /* Glow */
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-register__verification-input-group {
    display: flex;
    gap: 10px;
}

.page-register__verification-input {
    flex-grow: 1;
}

.page-register__get-code-button {
    padding: 12px 20px;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 8px;
    background: #2E7A4E; /* Border color as button background */
    color: #F2FFF6; /* Text Main */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-register__get-code-button:hover {
    background: #57E38D; /* Glow */
}

.page-register__checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.page-register__form-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #2AD16F; /* Checkbox color */
}

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 100, 0.4);
}

.page-register__submit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 100, 0.5);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 20px;
    color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background: #08160F; /* Background */
}

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

.page-register__faq-item {
    background: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.page-register__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

.page-register__faq-item summary:hover {
    background-color: #1a3325; /* Slightly lighter Card BG on hover */
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-register__faq-toggle {
    font-size: 1.5rem;
    font-weight: 800;
    margin-left: 20px;
    color: #57E38D; /* Glow */
}

.page-register__faq-answer {
    padding: 0 30px 20px 30px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1rem;
    line-height: 1.7;
}

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background: #0A4B2C; /* Deep Green */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-register__section-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }
    .page-register__hero-description {
        font-size: 1.1rem;
    }
    .page-register__benefits-grid,
    .page-register__steps-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px;
    }
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__how-to-register-section,
    .page-register__registration-form-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 40px 0;
    }

    .page-register__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-register__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-register__hero-description {
        font-size: 1rem;
    }

    .page-register__cta-button,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%; /* Full width for buttons on mobile */
        max-width: 100% !important; /* Force full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__btn-secondary {
        margin-left: 0; /* Remove margin for stacked buttons */
        margin-top: 15px; /* Add top margin for separation */
    }
    .page-register__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__image-wrapper,
    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__registration-form,
    .page-register__faq-item,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }
    .page-register__hero-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile too */
    }
    .page-register__form-group {
        padding-left: 0;
        padding-right: 0;
    }
    .page-register__form-input,
    .page-register__get-code-button {
        width: 100%;
    }
    .page-register__verification-input-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }
    .page-register__section-title {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }
    .page-register__card-title {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }
    .page-register__hero-description,
    .page-register__section-description,
    .page-register__card-text {
        font-size: 0.9rem;
    }
    .page-register__step-number {
        font-size: 2rem;
    }
}