/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #007bff;
    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-color: #ffc107;
    border-radius: 2px;
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.page-register__hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-register__hero-button,
.page-register__hero-download-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 10px;
    border: 2px solid #007bff;
}

.page-register__hero-button:hover,
.page-register__hero-download-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.page-register__hero-download-button {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333333;
}

.page-register__hero-download-button:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

/* Value Section */
.page-register__value-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-register__value-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-register__value-item:hover {
    transform: translateY(-10px);
}

.page-register__value-icon {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-register__value-heading {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-register__value-text {
    font-size: 1em;
    color: #555555;
}

.page-register__center-button {
    text-align: center;
}

.page-register__main-cta-button,
.page-register__secondary-cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #333333;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-register__main-cta-button:hover,
.page-register__secondary-cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #f0f4f8;
}

.page-register__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.page-register__step-item {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-register__step-item:last-child {
    margin-bottom: 0;
}

.page-register__step-heading {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px;
}

.page-register__step-heading::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffc107;
    color: #333333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-register__steps-list li:nth-child(1) .page-register__step-heading::before { content: '1'; }
.page-register__steps-list li:nth-child(2) .page-register__step-heading::before { content: '2'; }
.page-register__steps-list li:nth-child(3) .page-register__step-heading::before { content: '3'; }
.page-register__steps-list li:nth-child(4) .page-register__step-heading::before { content: '4'; }
.page-register__steps-list li:nth-child(5) .page-register__step-heading::before { content: '5'; }

.page-register__step-text {
    font-size: 1em;
    color: #555555;
}

/* Conditions Section */
.page-register__conditions-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-register__conditions-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-register__condition-item {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #007bff;
    border-radius: 5px;
    color: #444444;
    font-size: 1.1em;
}

.page-register__condition-item strong {
    color: #007bff;
}

.page-register__inline-link {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-register__inline-link:hover {
    color: #0056b3;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #f0f4f8;
}

.page-register__faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-register__faq-image-wrapper {
    text-align: center;
}

.page-register__faq-illustration {
    width: 400px;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__faq-items {
    margin-top: 30px;
}

.page-register__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #f8f8f8;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    color: #007bff;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #fdfdfd;
}

.page-register__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
}

.page-register__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-register__cta-image {
    width: 800px;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__cta-content {
    max-width: 800px;
}

.page-register__cta-title {
    font-size: 3em;
    color: #ffc107;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.page-register__cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #333333;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-register__cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__value-icon {
        width: 180px;
        height: 135px;
    }
    .page-register__cta-image {
        width: 600px;
        height: 337px;
    }
    .page-register__cta-title {
        font-size: 2.5em;
    }
    .page-register__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 120px);
    }
    .page-register__hero-content {
        padding: 30px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-button,
    .page-register__hero-download-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 5px;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__section-intro {
        font-size: 0.95em;
    }
    .page-register__value-grid {
        grid-template-columns: 1fr;
    }
    .page-register__value-icon {
        width: 200px;
        height: 150px;
    }
    .page-register__step-heading {
        font-size: 1.4em;
        padding-left: 35px;
    }
    .page-register__step-heading::before {
        width: 28px;
        height: 28px;
        font-size: 0.85em;
    }
    .page-register__condition-item {
        font-size: 1em;
    }
    .page-register__faq-grid {
        grid-template-columns: 1fr;
    }
    .page-register__faq-illustration {
        width: 300px;
        height: 225px;
    }
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-register__cta-image {
        width: 100%;
        height: auto;
    }
    .page-register__cta-title {
        font-size: 2em;
    }
    .page-register__cta-description {
        font-size: 1em;
    }
    .page-register__cta-button {
        padding: 15px 35px;
        font-size: 1.2em;
    }

    /* Ensure content images do not overflow */
    .page-register img {
        max-width: 100%;
        height: auto;
    }
    .page-register__faq-illustration,
    .page-register__value-icon,
    .page-register__cta-image {
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 150px;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__hero-button,
    .page-register__hero-download-button {
        padding: 10px 20px;
        font-size: 0.9em;
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__value-heading {
        font-size: 1.5em;
    }
    .page-register__faq-question {
        font-size: 1em;
    }
    .page-register__cta-title {
        font-size: 1.8em;
    }
    .page-register__cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}