/**
 * Careerscape Inquiry Form Styles
 * Version: 3.0.0
 */

/* =================================================================
   FORM CONTAINER
   ================================================================= */

.cif-form-wrapper {
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.cif-form {
    position: relative;
    width: 100%;
    padding: 32px;
    box-sizing: border-box;
}

/* =================================================================
   FORM ROWS & FIELDS
   ================================================================= */

.cif-form-row {
    margin-bottom: 24px;
}

.cif-form-row:last-of-type {
    margin-bottom: 0;
}

.cif-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Keep 2-column layout on mobile */

.cif-field {
    width: 100%;
}

/* =================================================================
   LABELS
   ================================================================= */

.cif-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1a3a5c;
}

.cif-optional {
    color: #666667;
    font-weight: 400;
}

/* =================================================================
   INPUT FIELDS
   ================================================================= */

.cif-input,
.cif-textarea,
.cif-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 16px !important; /* Prevent mobile zoom */
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cif-input:focus,
.cif-textarea:focus,
.cif-select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.cif-input::placeholder,
.cif-textarea::placeholder {
    color: #94a3b8;
}

.cif-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Select dropdown arrow */
.cif-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
    cursor: pointer;
}

.cif-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* =================================================================
   FILE UPLOAD
   ================================================================= */

.cif-file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    background-color: #f8fafc;
}

.cif-file-upload:hover {
    border-color: #14b8a6;
    background-color: #f0fdfa;
}

.cif-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.cif-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    text-align: center;
}

.cif-file-icon {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.cif-file-text {
    color: #64748b;
    font-size: 14px;
}

.cif-file-name {
    color: #14b8a6;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.cif-file-name:empty {
    display: none;
}

.cif-help {
    font-size: 12px;
    color: #666667;
    margin-top: 8px;
}

/* =================================================================
   SUBMIT BUTTON
   ================================================================= */

.cif-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background-color: #1a3a5c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 16px;
}

.cif-submit-btn:hover {
    background-color: #0d3b66;
    transform: translateY(-1px);
}

.cif-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cif-btn-icon {
    flex-shrink: 0;
}

/* =================================================================
   MESSAGES
   ================================================================= */

.cif-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.cif-message-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.cif-message-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

/* =================================================================
   SUCCESS STATE
   ================================================================= */

.cif-success {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

.cif-success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.cif-success-icon svg {
    width: 100%;
    height: 100%;
    color: #10b981;
}

.cif-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.cif-success-message {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 767px) {
    .cif-success-icon {
        width: 64px;
        height: 64px;
    }
    
    .cif-success-title {
        font-size: 24px;
    }
    
    .cif-file-label {
        padding: 20px 16px;
    }
}
