/* Modern Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f7fafc;
    font-size: 16px;
}

/* Modern Card Design */
.card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    border-radius: 8px;
    background-color: white;
    width: 90%;
    max-width: 1000px;
    padding: 24px;
    position: relative;
    margin: 0 auto 16px auto;
    border: 1px solid #e2e8f0;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header to Card Spacing */
section {
    margin: 0;
    background-color: aliceblue;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
    min-height: 100vh;
}

/* Main Container Background */
main {
    background-color: aliceblue;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 0;
    width: 100%;
    min-height: 100vh;
}

/* Modern Field Cards */
.field-card {
    border-radius: 6px;
    padding: 8px;
    background-color: white;
    border: 1px solid #e2e8f0;
    margin: 6px;
    width: 25%;
    transition: all 0.2s ease;
    position: relative;
}

.field-card.picker {
    width: 30%;
}

.field-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(44, 172, 225, 0.1);
}

.field-card input {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #2d3748;
    outline: none;
    padding: 2px 0;
    font-family: inherit;
    font-weight: 500;
}

.field-card input:focus {
    color: var(--primary-color);
}

.field-card input::placeholder {
    color: #a0aec0;
}

/* Modern Time Dropdowns */
.time-dropdown {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #2d3748;
    outline: none;
    padding: 2px 0;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232CACE1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    transition: all 0.2s ease;
}

.time-dropdown:focus {
    color: var(--primary-color);
}

.time-dropdown:hover {
    color: var(--primary-color);
}

.time-dropdown option {
    background-color: white;
    color: #2d3748;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    margin-left: 8px;
}

.time-dropdown option:hover {
    background-color: #f0f9ff;
    color: var(--primary-color);
}

.time-dropdown option:checked {
    background-color: var(--primary-color);
    color: white;
}

.field-card label {
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-card.read-only {
    background-color: #f7fafc;
    border-color: #e2e8f0;
}

.field-card.read-only input {
    width: 100%;
    background-color: transparent;
    color: #4a5568;
    font-weight: 500;
}

.field-card.read-only label {
    color: #4a5568;
    font-size: 12px;
}

/* Layout Utilities */
.break {
    flex-basis: 100%;
    height: 0;
}

.row {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: stretch;
}

.display-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1px;
}

/* Modern Buttons */
.btn {
    text-align: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    position: relative;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-secondary {
    color: #4a5568;
    background-color: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

/* Modern Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.2s ease;
}

.close:hover {
    color: #e53e3e;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 16px 0;
    font-weight: 700;
    line-height: 1.25;
    color: #1a202c;
}

h1 {
    font-size: 24px;
    color: #1a202c;
}

/* Card Heading with Gradient Background */
.card h1 {
    background: linear-gradient(90deg, rgb(0, 86, 137) 0%, rgb(0, 182, 185) 100%);
    color: white;
    padding: 16px 20px;
    margin: -24px -24px 24px -24px;
    border-radius: 8px 8px 0 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Icons */
.iconoir-calendar,
.iconoir-clock {
    color: var(--primary-color);
    font-size: 16px;
    transition: color 0.2s ease;
}

.field-card:hover .iconoir-calendar,
.field-card:hover .iconoir-clock {
    color: var(--secondary-color);
}

/* Terms Checkbox */
.field-card input[type="checkbox"] {
    transform: scale(1.2);
}

.field-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.field-card a:hover {
    text-decoration: underline;
}

/* Clickable field card for terms */
.field-card[onclick] {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Custom checkbox styling */
.custom-checkbox {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}

.terms-card[data-checked="true"] .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath d='M7 10l2.5 2.5 4-4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3e%3c/svg%3e");
    background-size: 25px;
    background-position: center;
    background-repeat: no-repeat;
}

.terms-card:hover .custom-checkbox {
    border-color: var(--primary-color);
}

footer {
    color : white;
    background: var(--card-heading-gradient);

    border-top: 0.0625rem solid rgba(255, 255, 255, 0.5);
    padding: 16px 20px;
    width: 100%;
    a {
        text-decoration: none;
        color: inherit;
    }

    ul {
     margin: 0;
     list-style: none;
        display: inline-flex;
        flex-wrap: wrap;
        width: 60%;
        justify-content: space-between;
    }
}

.footer {
    margin: auto;
    max-width: 1200px;

}
