:root {
    --primary-color: #0062d1;
    --primary-hover: #0050aa;
    --bg-color: #f6fafe;
    --text-main: #1a1f2b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --error-color: #ef4444;
    --success-color: #10b981;
    --input-bg: #ffffff;
    --focus-ring: rgba(0, 98, 209, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Background Abstract Shapes */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 Q100,200 200,0 Z" fill="%23e8f1f8"/></svg>') no-repeat;
    opacity: 0.8;
}

.shape-left {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-size: contain;
    transform: rotate(45deg);
}

.shape-right {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-size: contain;
    transform: rotate(-45deg);
}


/* Layout */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    display: none;
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.widget-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    gap: 30px;
    margin-bottom: 10px;
}

.panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.03);
}

.left-panel {
    background-color: #f7fbff; /* Slightly blue background as per design */
    border: 1px solid #e2edf8;
}

.right-panel {
    background-color: var(--card-bg);
}

.single-widget {
    max-width: 700px;
}

.main-panel {
    max-width: 100%;
}

.center-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-header .icon-container {
    margin-bottom: 0;
}

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

/* Typography in Panels */
.panel-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e6f0fa;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.blue-icon {
    background-color: #e6f0fa;
}

.panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.panel-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 18px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--input-bg);
    transition: all 0.2s ease;
}

.input-wrapper textarea {
    padding-top: 14px;
    resize: none;
}

.textarea-wrapper i {
    top: 16px;
}

.input-wrapper select {
    appearance: none;
}

#m_subject {
    padding-left: 16px; /* Reset padding if no icon */
}

#m_subject {
    padding-left: 16px; /* Reset padding if no icon */
}
.right-panel #m_subject {
    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='%2364748b' 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 16px center;
    background-size: 16px;
}
.left-panel #c_time {
    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='%2364748b' 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 16px center;
    background-size: 16px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #94a3b8;
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Slots UI */
.slots-container {
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    overflow: hidden;
    margin-bottom: 24px;
}

.slots-header {
    background-color: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.slots-header span {
    font-size: 0.9rem;
    color: var(--text-main);
}

.slots-header .tz {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.slots-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom Scrollbar for Slots */
.slots-list::-webkit-scrollbar {
    width: 6px;
}
.slots-list::-webkit-scrollbar-track {
    background: #f1f5f9; 
    border-radius: 10px;
}
.slots-list::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}

.slot-radio {
    display: none;
}

.slot-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--text-main);
}

.slot-label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    transition: all 0.2s;
}

.slot-radio:checked + .slot-label {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
    color: var(--primary-color);
    font-weight: 500;
}

.slot-radio:checked + .slot-label::before {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: inset 0 0 0 4px var(--primary-color);
}

.slot-booked {
    color: #94a3b8 !important;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.slot-radio:disabled + .slot-booked::before {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 98, 209, 0.2);
}

.security-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}
.form-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}
.form-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* OR Separator */
.or-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.or-separator .line {
    width: 1px;
    height: 100px;
    background-color: var(--border-color);
}

.or-separator .text {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 15px 0;
}

/* Footer Features */
.footer-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding: 30px;
    background-color: transparent;
    width: 100%;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.feature i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .widget-container {
        flex-direction: column;
        align-items: center;
    }
    
    .or-separator {
        flex-direction: row;
        width: 100%;
        max-width: 500px;
    }
    
    .or-separator .line {
        height: 1px;
        width: 100%;
    }
    
    .or-separator .text {
        margin: 0 15px;
    }
    
    .footer-features {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .panel {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .footer-features {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 20px;
    }
}
