/* Simply Sweet Cakes Divi Module - Frontend Styles */

/* Form Container */
.ssc-consultation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Form Header */
.ssc-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ssc-form-header h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.ssc-form-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Form Sections */
.ssc-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 4px solid #e91e63;
    animation: fadeInUp 0.6s ease-out;
}

.ssc-form-section h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ssc-form-section h3::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #e91e63;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    margin-right: 10px;
}

/* Form Rows and Fields */
.ssc-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ssc-form-field {
    flex: 1;
    margin-bottom: 15px;
}

.ssc-form-field.ssc-half {
    flex: 0 0 calc(50% - 7.5px);
}

.ssc-form-field.ssc-third {
    flex: 0 0 calc(33.333% - 10px);
}

.ssc-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ssc-form-field .required {
    color: #e91e63;
}

/* Form Inputs */
.ssc-form-field input,
.ssc-form-field select,
.ssc-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
    background: white;
}

.ssc-form-field input:focus,
.ssc-form-field select:focus,
.ssc-form-field textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.ssc-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error States */
.ssc-form-field.error input,
.ssc-form-field.error select,
.ssc-form-field.error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.ssc-error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Messages */
.ssc-form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.ssc-form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ssc-form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ssc-form-messages.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Buttons */
.ssc-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.ssc-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 5px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ssc-btn:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

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

.ssc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ssc-btn-secondary {
    background: #6c757d;
}

.ssc-btn-secondary:hover {
    background: #5a6268;
}

/* Loading States */
.ssc-btn-loading {
    display: none;
}

.ssc-btn:disabled .ssc-btn-text {
    display: none;
}

.ssc-btn:disabled .ssc-btn-loading {
    display: inline-block;
}

/* AI Preview Section */
.ssc-ai-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #dee2e6;
    display: none;
}

.ssc-ai-preview h4 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.ssc-ai-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ssc-ai-image {
    position: relative;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ssc-ai-image:hover {
    transform: scale(1.02);
}

.ssc-ai-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.ssc-ai-image.selected {
    border: 3px solid #e91e63;
}

/* Success Message */
.ssc-success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
}

.ssc-success-message h3 {
    color: #155724;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ssc-btn-loading {
    animation: pulse 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ssc-consultation-form {
        margin: 10px;
        padding: 15px;
    }

    .ssc-form-row {
        flex-direction: column;
        gap: 0;
    }

    .ssc-form-field.ssc-half,
    .ssc-form-field.ssc-third {
        flex: 1;
    }

    .ssc-form-header h2 {
        font-size: 1.5em;
    }

    .ssc-ai-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .ssc-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ssc-consultation-form {
        margin: 5px;
        padding: 10px;
    }

    .ssc-form-section {
        padding: 15px;
    }

    .ssc-ai-images {
        grid-template-columns: 1fr;
    }
}