/* ==========================================================================
   Delight Visitor Registration - Modern UI Stylesheet
   ========================================================================== */

/* Container & Base Layout */
.dvr-container,
.dvr-success {
    max-width: 580px;
    margin: 40px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(35, 53, 103, 0.08);
    border: 1px solid #f0f4f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #334155;
    box-sizing: border-box;
}

.dvr-container *,
.dvr-success * {
    box-sizing: border-box;
}

/* Header & Branding */
.dvr-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px auto;
}

.dvr-header {
    text-align: center;
    margin-bottom: 28px;
}

.dvr-header h2 {
    color: #233567;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dvr-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Form Layout Grid */
.dvr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dvr-field-full {
    grid-column: span 2;
}

/* Form Inputs & Labels */
.dvr-field {
    display: flex;
    flex-direction: column;
}

.dvr-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.dvr-field label span.required {
    color: #ef4444;
}

.dvr-field input[type="text"],
.dvr-field input[type="number"],
.dvr-field input[type="tel"],
.dvr-field input[type="email"],
.dvr-field select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s ease-in-out;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.dvr-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2064748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

.dvr-field input:focus,
.dvr-field select:focus {
    background-color: #ffffff;
    border-color: #44b7a3;
    box-shadow: 0 0 0 4px rgba(68, 183, 163, 0.15);
}

/* Appointment Checkbox Card */
.dvr-checkbox-card {
    background: #f0fdf9;
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.dvr-checkbox-card:hover {
    background: #ecfdf5;
}

.dvr-checkbox-card label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.dvr-checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #44b7a3;
    cursor: pointer;
    margin: 0;
}

.dvr-checkbox-card span {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}

/* Action Button */
.dvr-btn-submit {
    grid-column: span 2;
    margin-top: 10px;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #233567 0%, #1a284e 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(35, 53, 103, 0.25);
}

.dvr-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(35, 53, 103, 0.35);
}

.dvr-btn-submit:active {
    transform: translateY(1px);
}

/* Success Card View */
.dvr-success {
    text-align: center;
}

.dvr-success-icon {
    width: 64px;
    height: 64px;
    background: #eefaf7;
    color: #359887;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
}

.dvr-success h2 {
    color: #233567;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.dvr-success p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.dvr-number-badge {
    display: inline-block;
    background: linear-gradient(135deg, #233567, #1a284e);
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 12px 28px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 6px 16px rgba(35, 53, 103, 0.2);
}

.dvr-btn-reset {
    display: inline-block;
    padding: 12px 24px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dvr-btn-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Responsive Styles */
@media (max-width: 540px) {
    .dvr-container,
    .dvr-success {
        padding: 28px 20px;
        margin: 20px 12px;
        border-radius: 14px;
    }

    .dvr-form-grid {
        grid-template-columns: 1fr;
    }

    .dvr-field-full,
    .dvr-btn-submit {
        grid-column: span 1;
    }
}