/* AutoHub Check-in - Public Service Request Form */

.autohub-checkin {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.autohub-checkin-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.autohub-checkin-intro {
    color: #555;
    margin-bottom: 25px;
}

.autohub-checkin-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.autohub-checkin-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.autohub-checkin-row {
    margin-bottom: 15px;
}

.autohub-checkin-row:last-child {
    margin-bottom: 0;
}

.autohub-checkin-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.autohub-checkin-row .required {
    color: #c00;
}

.autohub-checkin-row input[type="text"],
.autohub-checkin-row input[type="email"],
.autohub-checkin-row input[type="tel"],
.autohub-checkin-row input[type="number"],
.autohub-checkin-row input[type="date"],
.autohub-checkin-row input[type="datetime-local"],
.autohub-checkin-row textarea,
.autohub-checkin-row select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.autohub-checkin-row textarea {
    min-height: 80px;
    resize: vertical;
}

.autohub-checkin-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.autohub-checkin-row-thirds {
    display: inline-block;
    width: calc(33.333% - 10px);
    margin-right: 10px;
    vertical-align: top;
}

.autohub-checkin-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 20px;
}

.autohub-checkin-service-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.autohub-checkin-service-item label {
    margin-bottom: 0;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
}

.autohub-checkin-service-item input[type="checkbox"] {
    margin-right: 8px;
}

.autohub-checkin-other-input {
    width: 120px !important;
    min-width: 120px;
}

.autohub-checkin-upload-area {
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fff;
}

.autohub-checkin-add-photos {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.autohub-checkin-add-photos:hover,
#checkin_add_photos:hover {
    background: #135e96;
    color: #fff;
}

#checkin_submit_btn:hover,
.autohub-checkin-submit:hover {
    background: #135e96 !important;
    color: #fff !important;
}

.autohub-checkin-upload-progress {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}
.autohub-checkin-upload-progress-bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
    max-width: 280px;
}
.autohub-checkin-upload-progress-bar-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.15s ease;
}

.autohub-checkin-photo-item .autohub-checkin-file-link {
    display: block;
    width: 100px;
    min-height: 76px;
    max-height: 76px;
    padding: 6px;
    font-size: 11px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #2271b1;
    text-decoration: none;
    word-break: break-all;
    overflow: hidden;
    box-sizing: border-box;
}
.autohub-checkin-photo-item .autohub-checkin-file-link:hover {
    color: #135e96;
    text-decoration: underline;
}

.autohub-checkin-photos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.autohub-checkin-photo-item {
    position: relative;
    flex: 0 0 auto;
}

.autohub-checkin-photo-thumb-desc {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.autohub-checkin-photo-item img,
.autohub-checkin-photo-item .autohub-checkin-file-link {
    flex-shrink: 0;
}

.autohub-checkin-photo-item .autohub-checkin-photo-desc {
    width: 140px;
    min-width: 100px;
    height: 76px;
    min-height: 76px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.autohub-checkin-photo-item img {
    max-width: 100px;
    max-height: 76px;
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.autohub-checkin-photo-item .autohub-checkin-remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 20px;
    font-size: 16px;
    border-radius: 50%;
    background: #c00;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Insurance claim details - indent when shown */
.autohub-checkin-insurance-details-wrap {
    margin-top: 10px;
    padding-left: 1em;
    padding-top: 8px;
    border-left: 3px solid #ddd;
}

.autohub-checkin-waiver {
    background: #fff8e6;
    border-color: #e6d9b3;
}

.autohub-checkin-waiver-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
}

.autohub-checkin-waiver-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.autohub-checkin-submit-wrap {
    margin-top: 25px;
    text-align: center;
}

.autohub-checkin-submit {
    padding: 14px 40px;
    font-size: 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.autohub-checkin-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.autohub-checkin-success {
    text-align: center;
    padding: 40px 20px;
    background: #f0f9f0;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
}

.autohub-checkin-success h2 {
    margin-top: 0;
    color: #2e7d32;
}

.autohub-checkin-price-msg {
    font-weight: 600;
    margin: 20px 0;
}

.autohub-checkin-back-home {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
}

.autohub-checkin-back-home:hover {
    background: #135e96;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 600px) {
    .autohub-checkin {
        padding: 15px;
    }

    .autohub-checkin-row-thirds {
        width: 100%;
        margin-right: 0;
    }

    .autohub-checkin-services {
        grid-template-columns: 1fr;
    }

    .autohub-checkin-section {
        padding: 15px;
    }
}
