/* ==========================================================================
   APPOINTMENT STYLES - Servidiesel PREMIUM DARK
   ========================================================================== */

/* Color Palette Overrides/Extensions */
:root {
    --slate-950: #020617;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-100: #F1F5F9;
    --orange-600: #EA580C;
    --orange-500: #F97316;
}

body {
    background-color: var(--slate-950);
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-badge {
    background-color: var(--primary-orange);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    text-transform: uppercase;
}

/* Layout */
.appointment-page-layout {
    padding-bottom: 100px;
}

.appointment-hero {
    position: relative;
    padding: 160px 0 100px;
    background: url('../images/index/hero_bg_index.webp') no-repeat center center/cover;
    text-align: center;
    overflow: hidden;
}

.appointment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.7));
    z-index: 1;
}

.appointment-hero .container {
    position: relative;
    z-index: 2;
}

.appointment-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.appointment-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--slate-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

/* Form Column */
.form-card-premium {
    background: var(--slate-900);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.form-header-premium {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-circle-form {
    width: 70px;
    height: 70px;
    background: rgba(255, 140, 0, 0.15);
    color: var(--primary-orange);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.header-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-align: left;
}

.header-text p {
    color: var(--slate-400);
    margin: 5px 0 0;
    font-size: 1.1rem;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-orange);
    margin: 45px 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-section-title::after {
    content: '';
    height: 1px;
    background: rgba(255, 140, 0, 0.3);
    flex-grow: 1;
}

/* Form Groups */
.form-group-premium {
    margin-bottom: 35px;
}

.form-group-premium label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-100);
    margin-bottom: 12px;
}

.input-wrapper, .select-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-group-premium input, 
.form-group-premium select, 
.form-group-premium textarea {
    width: 100%;
    background: var(--slate-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px 18px 55px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group-premium input::placeholder {
    color: var(--slate-400);
}

.form-group-premium input:focus, 
.form-group-premium select:focus, 
.form-group-premium textarea:focus {
    background: #242F44;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2);
    outline: none;
}

.form-group-premium input:focus + i {
    color: var(--primary-orange);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Specific for select/no icon */
.form-group-premium select {
    padding-left: 20px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%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 20px center;
    background-size: 22px;
}

.form-group-premium textarea {
    padding-left: 20px;
    min-height: 150px;
    line-height: 1.7;
    resize: vertical;
}

/* Submit Button */
.btn-submit-premium {
    width: 100%;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    border: none;
    padding: 24px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.5);
    filter: brightness(1.1);
}

.btn-submit-premium i {
    font-size: 1.2rem;
}

/* Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--slate-900);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.premium-border {
    border-top: 4px solid var(--primary-orange);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sidebar-header i {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.sidebar-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.sidebar-card p {
    color: var(--slate-300);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-mini-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-orange);
    margin-top: 5px;
    font-size: 1.2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--slate-400);
    margin: 0;
}

.highlight-card {
    background: linear-gradient(145deg, var(--slate-800), var(--slate-900));
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--slate-100);
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.benefits-list li i {
    color: #22c55e;
}

.emergency-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 140, 0, 0.3);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
}

.emergency-box:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 140, 0, 0.05);
}

.emergency-box i {
    color: var(--primary-orange);
    font-size: 2.5rem;
}

.emergency-box h4 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.emergency-link {
    display: block;
    margin-top: 15px;
    color: var(--primary-orange);
    font-weight: 900;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-link:hover {
    transform: scale(1.05);
}

/* Feedback Overlays */
.form-feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 32px;
}

.feedback-message {
    text-align: center;
    max-width: 500px;
    padding: 60px;
}

.feedback-message i {
    font-size: 5rem;
    margin-bottom: 35px;
}

.success-message i { color: #22c55e; }
.error-message i { color: #ef4444; }

.feedback-message h2 { color: white; margin-bottom: 20px; font-size: 2.5rem; font-weight: 800; }
.feedback-message p { color: var(--slate-300); margin-bottom: 40px; font-size: 1.2rem; }

.btn-premium-small {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-small:hover {
    background: var(--orange-600);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 140, 0, 0.1);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr 340px;
        gap: 30px;
    }
    .form-card-premium {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 40px;
    }

    .info-sidebar {
        order: -1;
    }

    .form-card-premium {
        padding: 50px 30px;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .appointment-hero {
        padding: 140px 0 80px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .header-text h2 { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .form-header-premium {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-text h2 { text-align: center; }
    .header-text p { text-align: center; }

    .btn-submit-premium {
        padding: 22px 15px;
        font-size: 1.1rem;
    }

    .icon-circle-form {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }
}
