/**
 * SmileIT Contact Form Styles
 * Version: 1.2.4
 */

/* Modal Overlay */
.smileit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content Container */
.smileit-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

/* Prevent body scroll when modal is open */
body.smileit-modal-open {
    overflow: hidden;
}

/* Modal Close Button */
.smileit-modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    padding: 15px 20px;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.smileit-modal-close:hover {
    color: #0056b3;
}

/* Modal Body */
#smileit-modal-body {
    padding: 0 30px 30px 30px;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tiles Heading */
.smileit-tiles-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 30px 0;
}

/* Service Tiles Grid */
.smileit-service-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* Service Tile */
.smileit-tile {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    display: block;
}

.smileit-tile:hover {
    border-color: #0056b3;
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.15);
    transform: translateY(-4px);
}

.smileit-tile-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smileit-tile-icon svg {
    width: 28px;
    height: 28px;
}

.smileit-tile h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.smileit-tile p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Icon Color Variants */
.smileit-icon-yellow {
    background: #fdf2e5;
    color: #eba62d;
}

.smileit-icon-yellow svg {
    stroke: #eba62d;
}

.smileit-icon-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.smileit-icon-blue svg {
    stroke: #1976d2;
}

.smileit-icon-red {
    background: #ffebee;
    color: #e74c3c;
}

.smileit-icon-red svg {
    stroke: #e74c3c;
}

.smileit-icon-purple {
    background: #f3e5f5;
    color: #9c27b0;
}

.smileit-icon-purple svg {
    stroke: #9c27b0;
}

.smileit-icon-indigo {
    background: #e8eaf6;
    color: #3f51b5;
}

.smileit-icon-indigo svg {
    stroke: #3f51b5;
}

.smileit-icon-support {
    background: #e8e8e8;
    color: #666666;
}

.smileit-icon-support svg {
    stroke: #666666;
}

/* Tile CTA Button */
.smileit-tile-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.smileit-tile:hover .smileit-tile-cta {
    color: #e55a00;
}

/* Form Wrapper */
.smileit-contact-form-wrapper {
    max-width: 100%;
}

/* Form Header */
.smileit-form-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.smileit-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.smileit-form-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Form Groups */
.smileit-form-group {
    margin-bottom: 20px;
}

.smileit-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.smileit-form-group label .required {
    color: #d32f2f;
}

.smileit-form-group input[type="text"],
.smileit-form-group input[type="email"],
.smileit-form-group input[type="tel"],
.smileit-form-group select,
.smileit-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s;
    font-family: inherit;
}

.smileit-form-group input:focus,
.smileit-form-group select:focus,
.smileit-form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.smileit-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form Row Layout */
.smileit-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.smileit-form-row .smileit-form-group {
    margin-bottom: 0;
}

.smileit-half {
    flex: 1;
    min-width: 0;
}

.smileit-third {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .smileit-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .smileit-form-row .smileit-form-group {
        margin-bottom: 20px;
    }
}

/* Checkboxes */
.smileit-checkbox-group {
    margin-bottom: 20px;
}

.smileit-checkbox-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.smileit-checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.smileit-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.smileit-checkbox-item label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Service-Specific Section Header */
.smileit-service-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #d32f2f;
    padding: 16px 20px;
    margin: 24px 0 20px 0;
    border-radius: 8px;
}

.smileit-service-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Title Colors */
.smileit-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.smileit-section-yellow {
    background: linear-gradient(135deg, #fdf2e5 0%, #fce5c5 100%);
    border-left: 4px solid #eba62d;
    color: #b8860b;
}

.smileit-section-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #1976d2;
    color: #1565c0;
}

.smileit-section-red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #e74c3c;
    color: #c62828;
}

.smileit-section-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 4px solid #9c27b0;
    color: #7b1fa2;
}

.smileit-section-indigo {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-left: 4px solid #3f51b5;
    color: #303f9f;
}

.smileit-section-teal {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-left: 4px solid #009688;
    color: #00796b;
}

/* Tile Icon Colors */
.smileit-icon-teal {
    background: #e0f2f1;
    color: #009688;
}

.smileit-icon-teal svg {
    stroke: #009688;
}

/* Submit Button */
.smileit-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.smileit-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.smileit-submit-btn:hover {
    background: linear-gradient(135deg, #004494 0%, #002d61 100%);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
    transform: translateY(-2px);
}

.smileit-submit-btn:active {
    transform: translateY(0);
}

.smileit-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.smileit-btn-loading {
    display: inline-block;
}

/* Messages */
.smileit-message {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.smileit-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.smileit-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

/* Responsive */
@media (max-width: 768px) {
    .smileit-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }
    
    #smileit-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .smileit-service-tiles {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .smileit-form-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .smileit-modal-overlay {
        padding: 0;
    }
    
    .smileit-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
}
