﻿/* General Styles - REMOVED body styles to prevent global impact */

.invite-page-wrapper {
    /* These styles replace the original body styles, ensuring they only apply to the container */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9; /* Light background color */
    margin: 0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%; /* Ensure it takes full width of the layout section */
}

.container {
    width: 100%;
    max-width: 700px; /* Adjust as needed for the form width */
}

/* Tabs/Navigation Styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

    .tab.active {
        color: #333;
        font-weight: 500;
        border-bottom: 2px solid #007bff; /* A blue line to indicate active tab */
        margin-bottom: -1px; /* To cover the border-bottom of the tabs container */
    }

/* Form Card Styles */
.form-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form Header Styles */
.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.icon-box {
    background-color: #e6f0ff; /* Light blue background for the icon */
    color: #007bff; /* Blue icon color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 15px;
}

.header-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-text p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #777;
}

/* Form Layout and Grouping */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        margin-bottom: 8px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 15px;
        box-sizing: border-box;
        transition: border-color 0.2s;
        -webkit-appearance: none; /* Remove default styling for select on some browsers */
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
    }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
        }

    /* Custom styling for select dropdown arrow */
    .form-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E" );
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 12px;
        padding-right: 30px; /* Make space for the custom arrow */
    }

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 30px;
}

    .checkbox-group input[type="checkbox"] {
        /* Custom checkbox styling to match the image's look */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 1px solid #ccc;
        border-radius: 3px;
        margin-top: 2px;
        margin-right: 15px;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }

        .checkbox-group input[type="checkbox"]:checked {
            background-color: #007bff;
            border-color: #007bff;
        }

            .checkbox-group input[type="checkbox"]:checked::after {
                content: '\f00c'; /* Font Awesome checkmark icon */
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                color: #fff;
                font-size: 12px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

.checkbox-text label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
    cursor: pointer;
}

.checkbox-text p {
    font-size: 12px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* Form Actions/Buttons Styles */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

    .btn-secondary:hover {
        background-color: #e9ecef;
    }

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-icon {
    display: flex;
    align-items: center;
}

    .btn-icon i {
        margin-right: 5px;
    }

/* Responsive adjustments */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}
