/* ── Tutor Custom Checkout Fields ── */

.tcc-fields-wrap {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tcc-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 22px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcc-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #3B82F6;
    border-radius: 2px;
}

/* Field Groups */
.tcc-field-group {
    margin-bottom: 18px;
}

.tcc-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcc-field-group label span {
    color: #EF4444;
    margin-left: 2px;
}

.tcc-field-group input[type="text"],
.tcc-field-group input[type="email"],
.tcc-field-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #1F2937;
    background: #FAFAFA;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    outline: none;
}

.tcc-field-group input:focus {
    border-color: #3B82F6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tcc-field-group input.tcc-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.tcc-field-group input.tcc-valid {
    border-color: #10B981;
}

/* Upload Area */
.tcc-upload-group {
    margin-top: 24px;
}

.tcc-upload-box {
    border: 2px dashed #D1D5DB;
    border-radius: 10px;
    overflow: hidden;
    background: #F9FAFB;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
}

.tcc-upload-box:hover,
.tcc-upload-box.tcc-drag-over {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.tcc-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tcc-upload-placeholder {
    padding: 36px 20px;
    text-align: center;
    pointer-events: none;
}

.tcc-upload-placeholder svg {
    color: #9CA3AF;
    margin-bottom: 10px;
}

.tcc-upload-placeholder p {
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
    margin: 0 0 4px;
}

.tcc-upload-placeholder span {
    font-size: 12px;
    color: #9CA3AF;
}

/* Preview */
.tcc-preview-wrap {
    position: relative;
    padding: 12px;
}

.tcc-preview-wrap img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.tcc-remove-img {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #EF4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.tcc-remove-img:hover {
    background: #DC2626;
}

/* Upload Status */
.tcc-upload-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.tcc-upload-status.uploading {
    color: #F59E0B;
}

.tcc-upload-status.success {
    color: #10B981;
    font-weight: 600;
}

.tcc-upload-status.error {
    color: #EF4444;
    font-weight: 600;
}

/* Uploading spinner */
.tcc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #F59E0B;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tcc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

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

/* Admin Proof Box */
.tcc-admin-proof {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.tcc-admin-proof h3 {
    margin-top: 0;
    color: #1a1a2e;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .tcc-fields-wrap {
        padding: 20px 16px;
    }
}
