/* Get Matched Page Specific Styles */

/* Hero Section */
.hero-section.get-matched-hero {
    padding: 1rem 0 0.5rem !important;
}

.get-matched-hero .hero-container {
    background-color: var(--btn-radius-two);
    /* Grouping background properties for clarity */
    background-image: url('../src/images/premium_photo-1723651341087-c0eedf41164d.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px 10px 0 0;
    padding: 3rem;
    margin: 0 1.5rem;
    max-width: calc(100% - 3rem);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.get-matched-hero .hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.get-matched-hero .hero-container .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.get-matched-hero .hero-content {
    text-align: center;
    max-width: 100%;
}

.get-matched-hero .hero-content h1 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
}

.get-matched-hero .hero-content h1 .purpose-red {
    color: #CB7C57;
}

.step-info h2 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    color: white;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-info h2 .step-label {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.involvement-section h3 {
    font-family: 'Paytone One', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.step-card h3 {
    color: #000000;
}

.step-card {
    border-radius: 18px;
    padding: 30px;
    width: 30%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-label-top {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 2;
}

.step-card.step-1 {
    background-color: #F8F8F8;
}

.step-card.step-2 {
    background-color: #A3B18A;
}

.step-card.step-3 {
    background-color: #CB7C57;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h3 {
    font-family: 'Paytone One', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.step-card p {
    font-family: 'Minion Pro', serif;
    font-size: 1.1rem;
    color: #000000;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Paytone One', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid black;
    border-radius: 50%;
    pointer-events: none;
}

.step-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    z-index: 0;
}

.step-arrow.first {
    left: 32%;
}

.step-arrow.second {
    right: 32%;
}

/* Quiz Options Styles */
.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    background-color: var(--btn-radius-two);
    border: 2px solid var(--btn-radius-two);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(163, 177, 138, 0.3);
}

.quiz-option.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(203, 124, 87, 0.3);
}

/* Hide radio buttons but keep them in the DOM for accessibility */
.quiz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Quiz Section Styles */
.quiz-section {
    padding: 1rem 0 2rem;
    background-color: var(--background-color);
}

.quiz-container {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.question-counter {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: left;
}

.quiz-main-question {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    color: var(--black-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.quiz-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.quiz-content.fade-out {
    opacity: 0;
}

.quiz-content.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quiz-title {
    font-family: 'Paytone One', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.quiz-description {
    font-family: 'Minion Pro', serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #444;
}

.quiz-question {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--black-color);
    font-weight: 600;
    text-align: center;
}

.quiz-textarea {
    width: 100%;
    min-height: 150px;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Minion Pro', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    position: relative;
}

.quiz-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.9rem;
    color: #888;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-textarea:focus + .char-counter {
    opacity: 1;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.prev-button {
    background-color: #888;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Minion Pro', serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: none;
}

.prev-button:hover {
    background-color: #666;
}

.prev-button.visible {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 500px;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 0 auto 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 0.5s ease;
}

/* Results Animation Styles */
.analyzing-phase h2 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.success-phase {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.success-phase h2, .success-phase p {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.results-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.retake-btn, .continue-matching-btn {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn {
    background-color: #6c757d;
    color: white;
}

.retake-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.continue-matching-btn {
    background-color: var(--primary-color);
    color: white;
}

.continue-matching-btn:hover {
    background-color: #b56e4c;
    transform: translateY(-2px);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 0.5s ease;
}

.progress-markers {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.progress-marker {
    width: 20px;
    height: 20px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
}

.progress-marker.active {
    background-color: var(--primary-color);
    color: white;
}

.question-dots {
    display: flex;
    gap: 10px;
}

.question-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-dot.active {
    background-color: var(--primary-color);
    color: white;
}

.question-dot:hover:not(.active) {
    background-color: #ccc;
}

.next-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.next-button:hover {
    background-color: #b56e4c;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-card {
        width: 80%;
        margin-bottom: 50px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        top: auto;
        left: 50% !important;
        right: auto !important;
    }
    
    .step-arrow.first {
        top: 23%;
    }
    
    .step-arrow.second {
        top: 56%;
    }
    
    .quiz-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .question-dots {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .question-dot {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .get-matched-hero h1 {
        font-size: 2.5rem;
    }
    
    .step-card {
        width: 100%;
    }
    
    .quiz-container {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .quiz-main-question {
        font-size: 1.4rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-counter {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .quiz-option {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Second Quiz Section Styles */
#second-quiz {
    transition: opacity 0.5s ease;
}

.second-quiz-container {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.second-quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.second-quiz-header h2 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    color: var(--black-color);
    margin-bottom: 0.5rem;
}

.second-quiz-header p {
    font-family: 'Minion Pro', serif;
    font-size: 1.1rem;
    color: #666;
}

.involvement-section {
    margin-bottom: 2rem;
}

.involvement-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.involvement-option {
    background-color: var(--btn-radius-two);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

.involvement-option:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.involvement-option.selected {
    background-color: var(--primary-color);
}

.dropdown-section h3 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    color: var(--black-color);
    margin-bottom: 1rem;
}

.custom-select {
    margin-bottom: 1rem;
}

.custom-select select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-interests-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
}

.submit-interests-btn:hover {
    background-color: #b56e4c;
    transform: translateY(-2px);
}