/**
 * GTR Auto Vehicle Sourcing Form Styling
 *
 * Implements:
 * - Clean, accessible typography (Inter, sans-serif)
 * - Harmonious high-contrast design system adhering to Elementor Kit #9
 * - Responsive 2-, 3-, and 4-column grids with mobile stacking
 * - Interactive radio pills with red accent highlights (#E21B2D)
 * - Styled drag-and-drop document upload container with file list preview
 *
 * @package GTR_Auto
 */

.gtr-sourcing-form-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gtr-vehicle-sourcing-form {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
    box-sizing: border-box;
}

/* Form Groups & Section Headers */
.gtr-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.gtr-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #D9DCDF;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.gtr-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E21B2D;
    display: inline-block;
    flex-shrink: 0;
}

.gtr-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #111315;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* Form Row Grid Variations */
.gtr-form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.gtr-form-row:last-child {
    margin-bottom: 0;
}

.gtr-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gtr-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gtr-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.gtr-cols-budget {
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .gtr-cols-budget {
        grid-template-columns: 1fr;
    }
    .gtr-cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gtr-cols-4 {
        grid-template-columns: 1fr;
    }
}

.gtr-field-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* Inputs, Selects, and Textareas */
.gtr-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #111315;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.gtr-req {
    color: #E21B2D;
    font-weight: bold;
}

.gtr-form-input,
.gtr-form-select,
.gtr-form-textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D9DCDF;
    border-radius: 4px;
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111315;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 44px;
}

.gtr-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2370757B' 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 14px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}

.gtr-form-textarea {
    height: auto;
    min-height: 84px;
    resize: vertical;
    line-height: 1.5;
}

.gtr-form-input:focus,
.gtr-form-select:focus,
.gtr-form-textarea:focus {
    outline: none;
    border-color: #E21B2D !important;
    box-shadow: 0 0 0 2px rgba(226, 27, 45, 0.12);
}

.gtr-field-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #70757B;
    margin: 4px 0 16px 0;
    line-height: 1.5;
}

/* Radio Cards Grid & Pills */
.gtr-radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 6px;
    flex-wrap: wrap;
}

.gtr-radio-label {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #111315;
    cursor: pointer;
    gap: 6px;
}

.gtr-radio-label input[type="radio"] {
    accent-color: #E21B2D;
    margin: 0;
    cursor: pointer;
}

.gtr-radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.gtr-radio-card {
    border: 1px solid #D9DCDF;
    border-radius: 4px;
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
    background: #FFFFFF;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111315;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.gtr-radio-card input[type="radio"] {
    accent-color: #E21B2D;
    margin: 0;
    cursor: pointer;
}

.gtr-radio-card:hover {
    border-color: #E21B2D;
}

.gtr-radio-card:has(input:checked) {
    border-color: #E21B2D;
    background: rgba(226, 27, 45, 0.04);
}

/* Drag-and-Drop Document Upload Zone */
.gtr-upload-zone {
    border: 2px dashed #D9DCDF;
    border-radius: 6px;
    padding: 28px;
    text-align: center;
    background: rgba(245, 245, 243, 0.4);
    transition: border-color 0.15s, background 0.15s;
}

.gtr-upload-zone:hover {
    border-color: #E21B2D;
    background: rgba(245, 245, 243, 0.8);
}

.gtr-upload-icon-box {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px auto;
    background: #FFFFFF;
    border: 1px solid #D9DCDF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #70757B;
}

.gtr-upload-title {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #111315;
    margin: 0 0 4px 0;
}

.gtr-upload-sub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #70757B;
    margin: 0 0 16px 0;
}

.gtr-upload-btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid #D9DCDF;
    background: #FFFFFF;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #111315;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.15s;
}

.gtr-upload-btn-label:hover {
    border-color: #E21B2D;
    color: #E21B2D;
}

.gtr-file-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.gtr-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #D9DCDF;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    color: #111315;
}

.gtr-file-name {
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gtr-file-size {
    color: #70757B;
    font-size: 11px;
}

/* Consent & Action Strip */
.gtr-action-strip {
    border-top: 1px solid #D9DCDF;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.gtr-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gtr-consent-checkbox {
    margin-top: 3px;
    accent-color: #E21B2D;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.gtr-consent-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #70757B;
    line-height: 1.5;
    cursor: pointer;
}

.gtr-consent-label a {
    color: #E21B2D;
    text-decoration: underline;
}

.gtr-consent-label a:hover {
    color: #C81424;
}

.gtr-notice-box {
    background: #F5F5F3;
    border: 1px solid #D9DCDF;
    border-radius: 4px;
    padding: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #70757B;
    line-height: 1.5;
}

.gtr-notice-box strong {
    color: #111315;
    font-weight: bold;
}

.gtr-button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.gtr-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E21B2D;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
}

.gtr-submit-button:hover {
    background: #C81424;
}

.gtr-submit-button:active {
    transform: translateY(1px);
}

.gtr-submit-button:disabled {
    background: #A0A5AA !important;
    cursor: not-allowed;
    transform: none;
}

.gtr-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #D9DCDF;
    color: #111315;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.gtr-secondary-button:hover {
    border-color: #E21B2D;
    color: #E21B2D;
}

.gtr-form-response-box {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive Sticky Sidebar for Page #613 */
@media (min-width: 1024px) {
    .gtr-rv-sticky-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        align-self: flex-start !important;
    }
}
