/**
 * Careerscape Contact Form Widget Styles
 * Version: 1.0.0
 */

/* Base styles */
.csc-wrapper * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

.csc-wrapper .csc-container { 
    position: relative;
    z-index: 1; /* Stay below header dropdown */
}

.csc-wrapper .csc-section { 
    display: none; 
}

.csc-wrapper .csc-section.active { 
    display: block; 
    animation: fadeIn 0.5s; 
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* Typography */
.csc-wrapper .csc-title { 
    font-weight: 700; 
    font-size: 32px; 
    margin-bottom: 16px; 
}

.csc-wrapper .csc-subtitle { 
    margin-bottom: 32px; 
    font-size: 18px; 
    line-height: 1.6; 
}

/* Form container */
.csc-wrapper .csc-form-container { 
    padding: 10px 0;
}

/* Form placeholder - no border animation */
.csc-wrapper .csc-form-placeholder {
    position: relative;
    min-height: auto;
    display: none;
    overflow: visible;
    cursor: pointer;
    padding: 48px;
    border: 2px solid;
    border-radius: 16px;
}

.csc-wrapper .csc-form-placeholder.active {
    display: block;
}

.csc-wrapper .csc-form-placeholder .csc-success-message {
    text-align: center;
}

/* Response badge */
.csc-wrapper .csc-response-badge {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #D7B75C 0%, #C4A54F 100%);
    font-weight: 460;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: #021E3F;
    margin-bottom: 32px;
}

/* Form grid */
.csc-wrapper .csc-grid { 
    display: grid; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.csc-wrapper .csc-grid-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

/* Form inputs */
.csc-wrapper .csc-input, 
.csc-wrapper .csc-textarea { 
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid; 
    font-size: 16px; 
    outline: none; 
    border-radius: 6px; 
    transition: all 0.3s;
    font-family: inherit;
}

.csc-wrapper .csc-textarea {
    min-height: 120px;
    resize: vertical;
}

.csc-wrapper .csc-input:focus, 
.csc-wrapper .csc-textarea:focus { 
    border-color: #003E85 !important; 
    background: #ffffff !important; 
    box-shadow: 0 0 0 3px rgba(0, 62, 133, 0.1);
}

.csc-wrapper .csc-input::placeholder, 
.csc-wrapper .csc-textarea::placeholder { 
    color: #9CA3AF; 
}

/* Submit button */
.csc-wrapper .csc-submit-btn { 
    width: 100%; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 8px;
}

.csc-wrapper .csc-submit-btn:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(215, 183, 92, 0.3);
}

.csc-wrapper .csc-submit-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}

/* Loading spinner */
.csc-wrapper .csc-loading { 
    display: inline-block; 
    width: 16px; 
    height: 16px; 
    border: 2px solid rgba(2,30,63,.3); 
    border-radius: 50%; 
    border-top-color: #021E3F; 
    animation: spin 1s ease-in-out infinite;
    flex-shrink: 0;
}

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

/* Checkmark animation */
.csc-wrapper .csc-checkmark { 
    width: 96px; 
    height: 96px; 
    margin: 0 auto 24px; 
}

.csc-wrapper .csc-checkmark svg { 
    width: 100%; 
    height: 100%; 
}

.csc-wrapper .csc-circle { 
    fill: none; 
    stroke: #D7B75C; 
    stroke-width: 3; 
    stroke-dasharray: 320; 
    animation: draw 0.8s ease-out forwards; 
}

.csc-wrapper .csc-check { 
    stroke: #003E85; 
    stroke-width: 3; 
    fill: none; 
    stroke-dasharray: 50; 
    animation: draw 0.5s ease-out 0.8s forwards; 
}

@keyframes draw { 
    to { 
        stroke-dashoffset: 0; 
    } 
}

/* Reset link */
.csc-wrapper .csc-reset-link {
    color: #30537F;
    text-decoration: underline;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.csc-wrapper .csc-reset-link:hover {
    opacity: 1;
}

/* Mobile styles */
@media screen and (max-width: 767px) { 
    .csc-wrapper .csc-grid-row { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 8px !important; 
    }
    
    .csc-wrapper .csc-input, 
    .csc-wrapper .csc-textarea { 
        font-size: 16px !important; 
        padding: 10px 8px !important; 
    }
    
    .csc-wrapper .csc-grid { 
        gap: 10px !important; 
    }
    
    .csc-wrapper .csc-form-placeholder {
        padding: 32px 20px;
    }
    
    .csc-wrapper .csc-title {
        font-size: 28px;
    }
    
    .csc-wrapper .csc-subtitle {
        font-size: 16px;
    }
    
    .csc-wrapper .csc-response-badge {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Extra small devices */
@media screen and (max-width: 380px) { 
    .csc-wrapper .csc-grid-row { 
        gap: 5px !important; 
    }
    
    .csc-wrapper .csc-input { 
        font-size: 16px !important; 
        padding: 8px 6px !important; 
    }
}
