/**
 * Car Wheel Storage - Public & Staff Forms CSS
 */

:root {
    --cws-primary: #dc2626;
    --cws-primary-hover: #b91c1c;
    --cws-dark: #09090b;
    --cws-card-bg: #ffffff;
    --cws-border: #e4e4e7;
    --cws-radius: 8px;
    --cws-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cws-form-container {
    font-family: var(--cws-font);
    background: var(--cws-card-bg);
    border: 1px solid var(--cws-border);
    border-radius: var(--cws-radius);
    padding: 28px;
    max-width: 820px;
    margin: 25px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    color: var(--cws-dark);
}

.cws-form-header {
    text-align: center;
    margin-bottom: 24px;
}
.cws-header-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.cws-form-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--cws-dark);
}
.cws-form-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.cws-info-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--cws-primary);
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #475569;
}
.cws-info-banner svg {
    stroke: var(--cws-primary);
    flex-shrink: 0;
}

.cws-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .cws-form-grid {
        grid-template-columns: 1fr;
    }
}

.cws-field-group {
    display: flex;
    flex-direction: column;
}
.cws-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.cws-label-xs {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
    display: block;
}
.cws-required {
    color: #dc2626;
    font-weight: bold;
}
.cws-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #09090b;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cws-input:focus {
    outline: none;
    border-color: var(--cws-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.cws-sub-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px;
    margin-top: 18px;
}
.cws-sub-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 800;
    color: #09090b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cws-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.cws-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.cws-radio-card:hover {
    border-color: #cbd5e1;
}
.cws-radio-card input:checked ~ .cws-card-body strong {
    color: var(--cws-primary);
}
.cws-card-body strong {
    display: block;
    font-size: 13px;
    color: #09090b;
}
.cws-card-body span {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.cws-checkbox-wrapper {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
}
.cws-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #1e293b;
}

.cws-submit-wrap {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}
.cws-btn-primary {
    background: var(--cws-primary);
    color: #fff;
}
.cws-btn-primary:hover {
    background: var(--cws-primary-hover);
}
.cws-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.cws-btn-secondary:hover {
    background: #e2e8f0;
}
.cws-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.cws-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(220, 38, 38, 0.2);
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: cws-spin 0.8s linear infinite;
}
@keyframes cws-spin {
    to { transform: rotate(360deg); }
}

.cws-notice-area {
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
}
.cws-notice-success {
    background: #dcfce7;
    color: #15803d;
    border-left: 4px solid #16a34a;
}
.cws-notice-error {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #dc2626;
}

/* Mechanic Form Specifics */
.cws-mechanic-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 2px solid #e4e4e7;
    padding-bottom: 18px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .cws-mechanic-top-bar {
        flex-direction: column;
    }
}
.cws-search-booking-box {
    position: relative;
    min-width: 280px;
}
.cws-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
}
.cws-search-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 13px;
}
.cws-search-item:hover {
    background: #fee2e2;
}
.cws-panel {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 18px;
}
