/**
 * 1ESX Order Form Styles - Premium Aesthetics
 * Color palette: Navy Blue (#0b2b5e, #1e40af), Accent Yellow (#ffc436, #eab308), Slate (#64748b, #1e293b, #f8fafc)
 */

.onesx-form-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

/* Form Cards styling */
.onesx-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px -2px rgba(11, 43, 94, 0.04), 0 2px 8px -1px rgba(11, 43, 94, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.onesx-form-card:hover {
    box-shadow: 0 10px 30px -4px rgba(11, 43, 94, 0.06), 0 4px 12px -2px rgba(11, 43, 94, 0.03);
}

.onesx-form-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0b2b5e;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.onesx-card-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Grids & Input Groups */
.onesx-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .onesx-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.onesx-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.onesx-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b2b5e;
    letter-spacing: 0.02em;
}

.onesx-input-group label .required {
    color: #dc2626;
}

.onesx-input-group input[type="text"],
.onesx-input-group select,
.onesx-input-group textarea {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease-in-out;
    outline: none;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.onesx-input-group input[type="text"]:focus,
.onesx-input-group select:focus,
.onesx-input-group textarea:focus {
    border-color: #0b2b5e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 43, 94, 0.1), inset 0 2px 4px 0 rgba(0, 0, 0, 0.01);
}

/* Checkbox Cards options styling */
.onesx-checkbox-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.onesx-checkbox-card:hover {
    border-color: #ffc436;
    background: #fffdf5;
}

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

.onesx-checkbox-card label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

/* Reports Selection styling */
.onesx-reports-section {
    margin-top: 24px;
}

.onesx-label-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b2b5e;
    margin-bottom: 12px;
    display: block;
}

.onesx-report-group-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .onesx-report-group-container {
        grid-template-columns: 1fr;
    }
}

.onesx-report-option-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.onesx-report-option-card:hover {
    border-color: #0b2b5e;
    background: #f0f5ff;
}

.onesx-report-option-card input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0b2b5e;
}

.onesx-report-option-card label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    cursor: pointer;
}

.onesx-option-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b2b5e;
}

.onesx-option-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffc436;
}

.onesx-option-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* File upload dropzone design */
.onesx-file-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.onesx-file-dropzone:hover {
    border-color: #0b2b5e;
    background: #f1f5f9;
}

.onesx-file-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.onesx-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    pointer-events: none;
}

.onesx-dropzone-label svg {
    color: #0b2b5e;
    transition: transform 0.2s ease;
}

.onesx-file-dropzone:hover .onesx-dropzone-label svg {
    transform: translateY(-2px);
}

.onesx-dropzone-label p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b2b5e;
}

.dropzone-limits {
    font-size: 0.75rem;
    color: #94a3b8;
}

.onesx-selected-files-list {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #1e293b;
}

.onesx-selected-files-list div {
    padding: 6px 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

/* Floating/Summary card */
.onesx-summary-card {
    background: #0b2b5e;
    color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(11, 43, 94, 0.3);
}

.summary-details h3 {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffc436;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.summary-row.total-row {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 24px;
}

.onesx-summary-card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 15px 0;
}

/* Animated Submit Button */
.onesx-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: #ffc436;
    color: #0b2b5e;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 196, 54, 0.3);
    transition: all 0.3s ease;
}

.onesx-submit-btn:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 196, 54, 0.45);
}

.onesx-submit-btn:active {
    transform: translateY(0);
}

/* Spinner styling */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 43, 94, 0.2);
    border-radius: 50%;
    border-top-color: #0b2b5e;
    animation: onesx-spin 0.8s linear infinite;
}

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

/* Google Info Window confirmation styling */
#rtx-confirm-location-wrapper {
    padding: 10px;
    font-family: inherit;
}

#rtx-confirm-location-address {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 13px;
    color: #0b2b5e;
}

#rtx-confirm-location-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

#rtx-confirm-location-button {
    background: #ffc436;
    color: #0b2b5e;
    border: none;
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}
#rtx-confirm-location-button:hover {
    background: #eab308;
}
