/* Basic Clean Slate */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    /* Light grey background for the body */
    color: #333;
}

.main-header {
    background-color: #fff;
    width: 100%;
}

/* Banner Section */
.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #fff;
    /* Ensure white background behind image */
    padding: 10px 0;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    /* Limit max width if it gets too stretched on huge screens, adjust as needed */
    max-width: 1200px;
}

/* Navigation Bar */
.navbar {
    background-color: #343a40;
    /* Dark grey like the screenshot */
    color: #fff;
    padding: 12px 0;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 6px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
        color: #fff;
        text-decoration: none;
}

/* Login link with subtle accent */
.login-link {
    background-color: rgba(13, 110, 253, 0.8);
        text-transform: capitalize;
    }
    
    .login-link:hover {
        background-color: rgba(13, 110, 253, 1);
}

/* Welcome Section */
.welcome-section {
    padding: 40px 20px 20px;
    /* Reduced bottom padding */
    display: flex;
    justify-content: center;
    align-items: center;
}

.international-section {
    padding: 0 20px 40px;
    /* padding top 0 to be close to welcome */
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-card {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    max-width: 800px;
    width: 100%;
    /* text-align: center; removed to allow specific sections to align left */
}

.welcome-title {
    color: #007bff;
    /* Bootstrap primary blue */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
}

.welcome-body {
    text-align: center;
}

.welcome-body p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

.email-warning {
    margin-bottom: 25px !important;
    font-weight: 500;
}

.spam-note {
    font-style: italic;
    color: #0056b3 !important;
    /* Slightly darker blue usually used for links/notes */
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* International Section Specifics */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: left;
}

.bank-details {
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:first-child {
    border-top: 1px solid #eee;
}

.detail-label {
    width: 40%;
    font-weight: 700;
    color: #333;
    padding-right: 20px;
}

.detail-value {
    color: #444;
}

.alert-box {
    background-color: #ffebee;
    /* Light red/pink */
    color: #c62828;
    /* Dark red */
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 5px solid #d32f2f;
    font-weight: 600;
    text-align: left;
}

/* Registration Form Section */
.registration-form-section {
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 840px;
    /* Slightly wider to match container of card */
    margin: 0 auto;
}

.section-heading-center {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.masterclass-alert {
    background-color: #fff9c4;
    /* Light yellow */
    color: #8d6e63;
    /* Brownish text */
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 30px;
    font-weight: 600;
    border: 1px solid #fff59d;
}

/* Form Grid */
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 calc(50% - 20px);
    /* Default 2 cols */
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group.full-width {
    flex: 1 1 100%;
}

/* For the 3-column rows */
.form-group.col-span-1 {
    flex: 1 1 calc(33.333% - 20px);
}

/* Mobile responsive */
@media (max-width: 768px) {

    .form-group,
    .form-group.col-span-1 {
        flex: 1 1 100%;
    }
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* New Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 5px;
}

.code-select {
    width: 80px !important;
    /* Fixed width matching previous but as select */
    min-width: 80px;
    padding: 10px 5px !important;
    /* Adjust padding for narrow select */
    appearance: auto;
    /* Ensure dropdown arrow is visible */
    background-color: #f8f9fa;
    cursor: pointer;
}

.number-input {
    flex: 1;
}

.textarea-wrapper {
    position: relative;
}

.edit-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #666;
    pointer-events: none;
}

.checkbox-group {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.checkbox-group label {
    margin-bottom: 0;
    color: #333;
}

.mt-3 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* Accompanying Section */
.accompanying-section {
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
    text-align: left;
}

.section-sub-heading {
    margin-bottom: 20px;
    /* Increased slightly */
    font-size: 1.5rem;
    /* Matched typical h3 size */
    color: #333;
    font-weight: 700;
}

.add-btn {
    background-color: #198754;
    /* Exact Green from cloning */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.3333px;
    /* Exact size from cloning */
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-btn:hover {
    background-color: #157347;
}

/* Accompanying Person Card Styling */
.accompanying-person {
    background-color: #fff;
    border: 0.8px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Added slight shadow for better separation */
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

.remove-btn:hover {
    text-decoration: underline;
}

.accompanying-person .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 0;
}

.accompanying-person .full-width {
    grid-column: 1 / -1;
}

.accompanying-person label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    /* rgb(73, 80, 87) */
    font-size: 16px;
}

.accompanying-person .input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #000;
    background-color: #fff;
    border: 0.8px solid #ced4da;
    /* rgb(206, 212, 218) */
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
}

.accompanying-person select.input {
    background-color: #efefef;
    /* rgb(239, 239, 239) for selects */
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extras-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack in a single column (list view) */
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
}

/* Price Summary */
.price-summary-card {
    background-color: #fff;
    /* Looks slightly grey/bordered in screenshot */
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
    padding: 20px;
}

.summary-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #555;
}

.summary-row.border-bottom {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.total-row {
    font-weight: 800;
    color: #000;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    background-color: #0d6efd;
    /* Bootstrap primary blue */
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0b5ed7;
}

/* Validation Styles */
.error-msg {
    display: none;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
}

.input-error {
    border-color: #dc3545 !important;
}

.input-error+.error-msg,
/* Handle error msg sibling for groups */
.phone-input-group.input-error+.error-msg,
.form-group.input-error .error-msg {
    /* Generic fallback if wrapper has error */
    display: block;
}

/* Fix for nested input error display */
.phone-input-group input.input-error {
    border-color: #dc3545 !important;
}
/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.modal-message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-close-btn {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-close-btn:hover {
    background-color: #0b5ed7;
}

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

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