/* SkillBreed Complete Contact Modal Styles */

/* Modal Overlay */
.skillbreed-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    padding: 20px;
    box-sizing: border-box;
}

.skillbreed-contact-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.skillbreed-contact-modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.skillbreed-contact-modal.show .skillbreed-contact-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.skillbreed-contact-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.skillbreed-contact-modal-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
    font-family: 'Inter', sans-serif;
}

.skillbreed-contact-modal-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.skillbreed-contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skillbreed-contact-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Modal Body */
.skillbreed-contact-modal-body {
    padding: 1.5rem 2rem 2rem;
}

/* Form Styles */
.skillbreed-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skillbreed-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skillbreed-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skillbreed-form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}

.skillbreed-form-group input,
.skillbreed-form-group select,
.skillbreed-form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
}

.skillbreed-form-group input:focus,
.skillbreed-form-group select:focus,
.skillbreed-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.skillbreed-form-group input.error,
.skillbreed-form-group select.error,
.skillbreed-form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.skillbreed-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error Messages */
.skillbreed-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    min-height: 0;
    overflow: hidden;
}

.skillbreed-error-message.show {
    opacity: 1;
    transform: translateY(0);
    min-height: 1.25rem;
}

/* Character Count */
.skillbreed-character-count {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.skillbreed-character-count.warning {
    color: #f59e0b;
}

.skillbreed-character-count.error {
    color: #ef4444;
}

/* Honeypot */
.skillbreed-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Form Actions */
.skillbreed-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.skillbreed-btn-cancel {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.skillbreed-btn-cancel:hover {
    background: #e5e7eb;
}

.skillbreed-btn-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
    min-width: 140px;
}

.skillbreed-btn-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

.skillbreed-btn-submit .skillbreed-btn-spinner {
    display: none;
}

.skillbreed-btn-submit.loading .skillbreed-btn-text {
    display: none;
}

.skillbreed-btn-submit.loading .skillbreed-btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Form Note */
.skillbreed-form-note {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Success Modal */
.skillbreed-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
    box-sizing: border-box;
}

.skillbreed-success-modal.show {
    opacity: 1;
    visibility: visible;
}

.skillbreed-success-modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.skillbreed-success-modal.show .skillbreed-success-modal-content {
    transform: scale(1) translateY(0);
}

.skillbreed-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.skillbreed-success-modal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem;
    font-family: 'Inter', sans-serif;
}

.skillbreed-success-modal-body p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2rem;
    line-height: 1.5;
}

.skillbreed-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.skillbreed-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    border: none;
}

.skillbreed-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.skillbreed-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Error Notification */
.skillbreed-error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    z-index: 10002;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #dc2626;
}

.skillbreed-error-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.skillbreed-error-text {
    flex: 1;
    line-height: 1.4;
}

.skillbreed-error-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.skillbreed-error-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.skillbreed-error-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skillbreed-contact-modal {
        padding: 10px;
    }
    
    .skillbreed-contact-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .skillbreed-contact-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .skillbreed-contact-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .skillbreed-contact-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .skillbreed-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skillbreed-form-actions {
        flex-direction: column-reverse;
    }
    
    .skillbreed-btn-cancel,
    .skillbreed-btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .skillbreed-success-modal-content {
        padding: 1.5rem;
    }
    
    .skillbreed-success-actions {
        flex-direction: column;
    }
    
    .skillbreed-btn {
        width: 100%;
    }
    
    .skillbreed-error-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .skillbreed-contact-modal-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .skillbreed-contact-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .skillbreed-contact-modal-body {
        padding: 0.75rem 1rem 1rem;
    }
    
    .skillbreed-contact-form {
        gap: 1rem;
    }
    
    .skillbreed-form-group input,
    .skillbreed-form-group select,
    .skillbreed-form-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}
