/**
 * SendMeJob Accordion Widget Styles
 * 
 * Modern, responsive accordion design for job submission widget
 * 
 * @package SendMeJob
 * @since 1.0.4
 */

/* ==========================================================================
   Accordion Container
   ========================================================================== */

.sendmejob-submit-accordion {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.sendmejob-submit-accordion:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Accordion Trigger
   ========================================================================== */

.sendmejob-accordion-trigger {
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sendmejob-accordion-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: all 0.3s ease;
}

.sendmejob-accordion-btn:hover {
    transform: translateY(-1px);
}

.sendmejob-accordion-btn.active .sendmejob-accordion-icon svg {
    transform: rotate(45deg);
}

.sendmejob-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sendmejob-accordion-icon svg {
    transition: transform 0.3s ease;
}

.sendmejob-accordion-subtitle {
    margin: 8px 0 0 52px;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* ==========================================================================
   Accordion Content
   ========================================================================== */

.sendmejob-accordion-content {
    padding: 32px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.sendmejob-form-header {
    margin-bottom: 24px;
    text-align: center;
}

.sendmejob-form-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.sendmejob-form-description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.sendmejob-form-group {
    margin-bottom: 20px;
}

.sendmejob-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.sendmejob-form-row .sendmejob-half {
    flex: 1;
    margin-bottom: 0;
}

.sendmejob-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.sendmejob-label.required::after {
    content: " *";
    color: #ef4444;
}

.sendmejob-input,
.sendmejob-textarea,
.sendmejob-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.sendmejob-input:focus,
.sendmejob-textarea:focus,
.sendmejob-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sendmejob-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.sendmejob-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */

.sendmejob-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    align-items: center;
}

.sendmejob-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.sendmejob-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sendmejob-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sendmejob-cancel-btn {
    padding: 14px 20px;
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sendmejob-cancel-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */

.sendmejob-spinner {
    animation: sendmejob-spin 1s linear infinite;
}

@keyframes sendmejob-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Form Notice
   ========================================================================== */

.sendmejob-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
}

.sendmejob-notice-icon {
    color: #0284c7;
    margin-top: 1px;
}

.sendmejob-form-notice small {
    color: #0c4a6e;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   Success State
   ========================================================================== */

.sendmejob-success-state {
    padding: 40px 24px;
    text-align: center;
    background: #ffffff;
}

.sendmejob-success-content {
    max-width: 300px;
    margin: 0 auto;
}

.sendmejob-success-icon {
    margin-bottom: 16px;
    color: #10b981;
}

.sendmejob-success-state h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.sendmejob-success-state p {
    margin: 0 0 24px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.sendmejob-submit-another-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sendmejob-submit-another-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   Response Messages
   ========================================================================== */

.sendmejob-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.sendmejob-response.sendmejob-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.sendmejob-response.sendmejob-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .sendmejob-accordion-trigger {
        padding: 20px;
    }
    
    .sendmejob-accordion-content {
        padding: 24px 20px;
    }
    
    .sendmejob-accordion-btn {
        font-size: 16px;
    }
    
    .sendmejob-accordion-subtitle {
        margin-left: 48px;
        font-size: 13px;
    }
    
    .sendmejob-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .sendmejob-form-row .sendmejob-half {
        margin-bottom: 20px;
    }
    
    .sendmejob-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sendmejob-submit-btn,
    .sendmejob-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sendmejob-accordion-trigger {
        padding: 16px;
    }
    
    .sendmejob-accordion-content {
        padding: 20px 16px;
    }
    
    .sendmejob-accordion-icon {
        width: 36px;
        height: 36px;
    }
    
    .sendmejob-accordion-subtitle {
        margin-left: 44px;
    }
    
    .sendmejob-success-state {
        padding: 32px 16px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .sendmejob-submit-accordion {
        background: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    }
    
    .sendmejob-accordion-content {
        background: #1f2937;
        border-top-color: #374151;
    }
    
    .sendmejob-form-header h4 {
        color: #f9fafb;
    }
    
    .sendmejob-form-description {
        color: #d1d5db;
    }
    
    .sendmejob-label {
        color: #e5e7eb;
    }
    
    .sendmejob-input,
    .sendmejob-textarea,
    .sendmejob-select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .sendmejob-input:focus,
    .sendmejob-textarea:focus,
    .sendmejob-select:focus {
        border-color: #667eea;
        background: #374151;
    }
    
    .sendmejob-help {
        color: #9ca3af;
    }
    
    .sendmejob-cancel-btn {
        color: #d1d5db;
        border-color: #4b5563;
    }
    
    .sendmejob-cancel-btn:hover {
        background: #374151;
        border-color: #6b7280;
        color: #f3f4f6;
    }
    
    .sendmejob-success-state {
        background: #1f2937;
    }
    
    .sendmejob-success-state h4 {
        color: #f9fafb;
    }
    
    .sendmejob-success-state p {
        color: #d1d5db;
    }
}

