/* Design Form Styles */

.design-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 200px);
}

.design-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin: 30px 0;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.form-header .subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.form-header .required-note {
    font-size: 14px;
    color: #e74c3c;
    font-style: italic;
}

/* Form Groups */
.design-form .form-group {
    margin-bottom: 25px;
}

.design-form label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    display: block;
}

.design-form .form-control {
    height: 48px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.design-form .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    outline: none;
}

.design-form .form-control.is-invalid {
    border-color: #e74c3c;
}

.design-form .form-control.is-valid {
    border-color: #27ae60;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

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

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 48px;
    min-width: 280px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .btn-loader {
    display: none;
}

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

.btn-submit.loading .btn-loader {
    display: inline-block;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .design-form-section {
        padding: 40px 0;
    }

    .design-form-container {
        padding: 30px 20px;
        margin: 15px 0;
    }

    .form-header h1 {
        font-size: 28px;
    }

    .form-header .subtitle {
        font-size: 14px;
    }

    .btn-submit {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .design-form-container {
        padding: 25px 15px;
        border-radius: 8px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .design-form .form-control {
        height: 44px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px 32px;
        font-size: 15px;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Input Placeholder Styles */
.design-form .form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Focus States for Accessibility */
.design-form .form-control:focus,
.btn-submit:focus {
    outline: 3px solid rgba(52, 152, 219, 0.3);
    outline-offset: 2px;
}

/* Success State Animation */
@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
}

.form-control.is-valid {
    animation: successPulse 1s ease;
}
