/* Global Styles */
:root {
    --primary-brown: #671717;
    --secondary-brown: #8B4513;
    --light-brown: #A67C52;
    --gold: #D4AF37;
    --light-gold: #F0E68C;
    --cream: #FFF8DC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--cream), #f0f0f0);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: var(--primary-brown);
    padding: 0.75rem;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmu-logo {
    height: 80px;
    margin-right: 1rem;
}

.logo-text {
    color: white;
    font-style: italic;
}

.logo-text span {
    display: block;
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    /* Prevents scrolling issues */
}

/* Courses Showcase Styles */
.courses-showcase {
    width: 50%;
    padding: 1.5rem;
    background-color: white;
    overflow-y: auto;
    /* max-height: calc(100vh - 150px); Adjust for header and footer */
    order: 1;
}

.courses-showcase h2 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.4rem;
    position: relative;
}

/* Program Tabs */
#program,
#course {
    text-transform: uppercase;
}

.program-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scrollbar-width: thin;
    /* For Firefox */
}

.program-tabs::-webkit-scrollbar {
    height: 6px;
}

.program-tabs::-webkit-scrollbar-thumb {
    background-color: var(--light-brown);
    border-radius: 3px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.tab-btn:hover {
    color: var(--secondary-brown);
}

.tab-btn.active {
    color: var(--primary-brown);
}

.tab-btn.active:after {
    background-color: var(--gold);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.tab-content.active {
    display: block !important;
}

/* Program Category Styles */
.program-category {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.faculty-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faculty-header:hover {
    background: #e9ecef;
}

.faculty-header h3 {
    margin: 0;
    color: #333;
}

.faculty-header i {
    color: var(--primary-brown);
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.faculty-header.active i {
    transform: rotate(180deg);
}

.faculty-content {
    padding: 20px;
    display: none;
    background: #fff;
}

.program-category.active .faculty-content {
    display: block !important;
}

.school-section {
    margin-bottom: 20px;
}

.school-section:last-child {
    margin-bottom: 0;
}

.school-section h4 {
    color: #666;
    margin-bottom: 15px;
}

.degree-title {
    color: var(--secondary-brown);
    font-style: italic;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.course-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent var(--gold) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card:hover::after {
    opacity: 1;
}

/* Form Container Styles */
.form-container {
    width: 50%;
    padding: 0.8rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--gold);
    position: relative;
    overflow-y: auto;
    /* max-height: calc(100vh - 150px); Adjust for header and footer */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    order: 2;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--gold), var(--primary-brown));
}

.form-header {
    margin-bottom: 0.75rem;
    text-align: center;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--gold);
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 30%;
    width: 40%;
    height: 2px;
    background-color: var(--primary-brown);
}

.form-header h2 {
    color: var(--primary-brown);
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.form-header p {
    color: var(--light-brown);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 0.6rem;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    border: 2px solid #eee;
}

.form-group:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--light-gold);
}

/* Two-column form layout */
.form-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--secondary-brown);
    font-weight: 600;
    font-size: 0.8rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.4rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    border-width: 2px;
}

textarea {
    resize: vertical;
}

/* Captcha Styles */
.captcha-container {
    margin-top: 0.6rem;
    padding: 0.5rem;
    background-color: rgba(255, 248, 220, 0.3);
    border-radius: 6px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.captcha-container label {
    margin-bottom: 0.3rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

#captcha-code {
    background: linear-gradient(135deg, var(--light-brown), var(--primary-brown));
    padding: 0.6rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 5px;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    min-width: 130px;
    text-align: center;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gold);
}

#captcha-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="30" viewBox="0 0 100 30"><line x1="0" y1="25" x2="100" y2="5" stroke="white" stroke-width="1" opacity="0.2"/><line x1="0" y1="15" x2="100" y2="25" stroke="white" stroke-width="1" opacity="0.2"/></svg>');
    opacity: 0.3;
}

#refresh-captcha {
    background-color: var(--gold);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#refresh-captcha:hover {
    background-color: var(--light-brown);
    transform: rotate(15deg);
}

/* Button Styles */
.submit-group {
    margin-top: 0.6rem;
    text-align: center;
    padding: 0.6rem 0.5rem 0.3rem;
    border-top: 2px solid var(--gold);
    background: linear-gradient(to bottom, rgba(255, 248, 220, 0.3), transparent);
    border-radius: 0 0 8px 8px;
}

#submit-btn,
#pay-app-fee-btn {
    background: linear-gradient(to right, var(--primary-brown), var(--secondary-brown));
    color: white;
    border: 3px solid var(--gold);
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#submit-btn::before,
#pay-app-fee-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#submit-btn:hover,
#pay-app-fee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3);
}

#submit-btn:hover::before,
#pay-app-fee-btn:hover::before {
    left: 100%;
}

#submit-btn.submitting {
    background: linear-gradient(to right, var(--secondary-brown), var(--primary-brown));
    cursor: not-allowed;
    opacity: 0.9;
}

#submit-btn.submitting:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#pre-admission-btn {
    background: linear-gradient(to right, var(--primary-brown), var(--secondary-brown));
    color: white;
    border: 3px solid var(--gold);
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#pre-admission-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#pre-admission-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3);
}

#pre-admission-btn:hover::before {
    left: 100%;
}

#pre-admission-btn.submitting {
    background: linear-gradient(to right, var(--secondary-brown), var(--primary-brown));
    cursor: not-allowed;
    opacity: 0.9;
}

#pre-admission-btn.submitting:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

/* Response Message */
#form-response {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out forwards;
    position: relative;
    border-left: 5px solid;
}

#form-response.success {
    background-color: rgba(0, 128, 0, 0.1);
    color: #006600;
    border-color: #008800;
}

#form-response.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #cc0000;
    border-color: #ff3333;
}

/* Shake animation for error messages */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

#form-response.error {
    animation: fadeIn 0.3s ease-out forwards, shake 0.6s ease-in-out;
}

.hidden {
    display: none;
}

/* Footer Styles */
footer {
    background-color: var(--primary-brown);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    border-top: 2px solid var(--gold);
    width: 100%;
}

/* Media Queries */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        overflow: auto;
        min-height: 0;
        height: auto;
    }

    .courses-showcase {
        order: 2;
        width: 100%;
        max-height: none;
        height: auto;
        border-top: 4px solid var(--primary-brown);
        position: relative;
        z-index: 1;
        padding: 1.25rem;
    }

    .form-container {
        order: 1;
        width: 100%;
        max-height: none;
        height: auto;
        border-left: none;
        border-bottom: 4px solid var(--gold);
        padding: 1.25rem 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
    }

    .form-container::before {
        height: 8px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #enquiryForm {
        border-width: 3px;
        margin-bottom: 0.5rem;
    }

    .form-group {
        border-width: 2px;
    }

    .program-tabs {
        margin-bottom: 0.75rem;
    }

    .program-category {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
    }

    .gmu-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
        height: 80px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1rem 0.75rem;
    }

    #enquiryForm {
        padding: 0.75rem;
    }

    .program-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 0 auto;
        min-width: 110px;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Stack form inputs on smaller screens */
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-row .form-group {
        margin-bottom: 0;
    }

    .form-header h2 {
        font-size: 1.1rem;
    }

    .courses-showcase {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .courses-showcase {
        padding: 1rem;
        max-height: none;
    }

    .logo-text span {
        font-size: 1.1rem;
    }

    .gmu-logo {
        height: 60px;
    }

    .faculty-header h3 {
        font-size: 0.95rem;
    }

    .tab-btn {
        min-width: 100px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .form-container {
        padding: 0.75rem 0.5rem;
    }

    #enquiryForm {
        padding: 0.6rem;
    }

    .form-group {
        padding: 0.4rem;
    }

    .captcha-container {
        padding: 0.5rem;
    }

    .radio-group {
        gap: 1rem;
    }

    .radio-group label {
        font-size: 0.9rem;
        padding-left: 1.75rem;
    }

    .radio-group label:before {
        width: 1.1rem;
        height: 1.1rem;
    }

    .radio-group label:after {
        left: 0.225rem;
        width: 0.65rem;
        height: 0.65rem;
    }
}

/* Decorative Elements */
.form-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 0 L95 25 L95 75 L50 100 L5 75 L5 25 Z" fill="none" stroke="%23D4AF37" stroke-width="1" opacity="0.3"/></svg>');
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

/* Select Dropdown Custom Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path d="M0 0 L6 6 L12 0" fill="none" stroke="%238B4513" stroke-width="1.5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Placeholder Styling */
::placeholder {
    color: #666;
    opacity: 1;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        max-height: 0;
    }

    to {
        max-height: 2000px;
    }
}

@keyframes slideUp {
    from {
        max-height: 2000px;
    }

    to {
        max-height: 0;
    }
}

.form-group {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Add some gold accents */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
}

/* Style the captcha lines */
.captcha-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Form section titles */
.form-section-title {
    color: var(--primary-brown);
    font-size: 0.9rem;
    margin: 0.75rem 0 0.4rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px dashed var(--light-brown);
    position: relative;
    padding-left: 1.25rem;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-section-title::before {
    content: '\f0a4';
    /* Unicode for a hand pointer icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-size: 1rem;
}

/* Add outer border to the entire form */
#enquiryForm {
    border: 3px solid var(--primary-brown);
    border-radius: 10px;
    padding: 0.6rem;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.4rem;
}

/* Captcha specific styles */
.captcha-container input {
    border: 2px solid var(--light-brown);
}

/* Remove extra spacing that was for section titles */
.form-group:first-child {
    margin-top: 0.2rem;
}

/* Input styling for better visibility with darker placeholders */
input,
select {
    font-weight: 500;
}

/* Add subtle separators between form sections */
.form-row:nth-child(3) {
    border-bottom: 2px dashed rgba(139, 69, 19, 0.1);
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
}

.error-message {
    color: #ff3333;
    text-align: center;
    padding: 20px;
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    margin: 10px 0;
}

/* Form submission messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fee Details Styles */
.fee-details {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fee-details .form-group {
    margin-bottom: 1rem;
}

.fee-details label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.fee-details select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.fee-breakdown {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.fee-breakdown h4 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.fee-table {
    width: 100%;
    overflow-x: auto;
}

.fee-table table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th,
.fee-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.fee-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.fee-table tr:hover {
    background-color: #f8f9fa;
}

.fee-table td:last-child {
    font-weight: 500;
    color: var(--primary-brown);
}

.loading {
    text-align: center;
    padding: 1rem;
    color: #666;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-group label {
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    display: inline-block;
    color: var(--secondary-brown);
    font-weight: 500;
    transition: all 0.3s ease;
}

.radio-group label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--light-brown);
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.radio-group label:after {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--gold);
    transition: transform 0.3s ease;
}

.radio-group input[type="radio"]:checked+label:before {
    border-color: var(--primary-brown);
}

.radio-group input[type="radio"]:checked+label:after {
    transform: translateY(-50%) scale(1);
}

.radio-group input[type="radio"]:focus+label:before {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.radio-group label:hover:before {
    border-color: var(--gold);
}

/* Add hover effect for the label text */
.radio-group label:hover {
    color: var(--primary-brown);
}

/* Add responsive styles for radio group */
@media (max-width: 480px) {
    .radio-group {
        gap: 1rem;
    }

    .radio-group label {
        font-size: 0.9rem;
        padding-left: 1.75rem;
    }

    .radio-group label:before {
        width: 1.1rem;
        height: 1.1rem;
    }

    .radio-group label:after {
        left: 0.225rem;
        width: 0.65rem;
        height: 0.65rem;
    }
}

/* Success Page Styles */
.success-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
}

.success-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: rgba(255, 248, 220, 0.3);
    border-radius: 8px;
    border: 2px solid var(--gold);
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h2 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.2rem;
}

.enquiry-details {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.enquiry-details h3 {
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

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

.detail-item {
    padding: 1rem;
    background: rgba(255, 248, 220, 0.3);
    border-radius: 6px;
    border: 1px solid var(--light-brown);
}

.detail-item label {
    display: block;
    color: var(--secondary-brown);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-item span {
    color: #333;
    font-size: 1.1rem;
}

.action-buttons {
    text-align: center;
    margin-top: 2rem;
}

.back-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(to right, var(--primary-brown), var(--secondary-brown));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .success-content {
        padding: 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .success-message i {
        font-size: 3rem;
    }
}

/* Main Form Tabs */
.form-tabs.main-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
    gap: 0.5rem;
}

.form-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.form-tab-btn.active {
    background: var(--primary-brown);
    color: white;
}

.form-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-tab-content.active {
    display: block;
}

/* Registration Form Specifics */
.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
}

.input-with-button button {
    padding: 0 20px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.details-box {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.details-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-brown);
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.detail-label {
    width: 100px;
    font-weight: 600;
    color: var(--secondary-brown);
}

.detail-value {
    flex: 1;
    color: #333;
}

#continue-reg-btn {
    background: linear-gradient(to right, var(--primary-brown), var(--secondary-brown));
    color: white;
    border: 3px solid var(--gold);
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#continue-reg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#continue-reg-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3);
}

#continue-reg-btn:not(:disabled):hover::before {
    left: 100%;
}

#continue-reg-btn:disabled {
    background: linear-gradient(to right, #ccc, #ddd);
    border-color: #bbb;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}