/**
 * Business Showcase & Networking Hub - Business Profile Form Styles
 * Modern, responsive form styling for the business profile submission form
 * Version: 1.0.0
 */

.business-profile-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.business-profile-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.business-profile-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #4a90e2, #00d4ff);
    border-radius: 16px 16px 0 0;
}

.business-profile-form h2 {
    margin-top: 0;
    margin-bottom: 40px;
    color: #1d2327;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #2271b1, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.business-profile-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2271b1, #4a90e2);
    border-radius: 2px;
}

.business-profile-form .form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.business-profile-form .form-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.business-profile-form .form-section:last-child {
    border-bottom: none;
}

.business-profile-form .form-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #1d2327;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-profile-form .form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #2271b1, #4a90e2);
    border-radius: 2px;
}

.business-profile-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.business-profile-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-profile-form label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}

.business-profile-form input[type="text"]:not([required]),
.business-profile-form input[type="url"]:not([required]),
.business-profile-form select:not([required]) {
    margin-bottom: 0;
}

.business-profile-form input[type="text"],
.business-profile-form input[type="email"],
.business-profile-form input[type="url"],
.business-profile-form textarea,
.business-profile-form select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.business-profile-form input:focus,
.business-profile-form textarea:focus,
.business-profile-form select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1), 0 2px 8px rgba(34, 113, 177, 0.15);
    transform: translateY(-1px);
}

.business-profile-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.business-profile-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 50px;
    cursor: pointer;
}

.business-profile-form select:hover {
    border-color: #b8c6db;
}

.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.service-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-checkbox:hover {
    background: #e9ecef;
    border-color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2271b1;
    cursor: pointer;
}

.service-checkbox input[type="checkbox"]:checked + span {
    color: #2271b1;
    font-weight: 600;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.submit-business-profile {
    background: linear-gradient(135deg, #2271b1, #4a90e2);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-business-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-business-profile:hover::before {
    left: 100%;
}

.submit-business-profile:hover {
    background: linear-gradient(135deg, #1e5f99, #3a7bc8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.4);
}

.submit-business-profile:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.3);
}

.submit-business-profile:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-business-profile:disabled::before {
    display: none;
}

.form-loading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: linear-gradient(135deg, #d1f2eb, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.business-form-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.business-form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

/* Required field indicator */
.business-profile-form input[required]:not(:focus):invalid,
.business-profile-form textarea[required]:not(:focus):invalid {
    border-color: #e74c3c;
    background: #fdf2f2;
}

/* Placeholder styling */
.business-profile-form input::placeholder,
.business-profile-form textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Focus within for better accessibility */
.business-profile-form .form-group:focus-within label {
    color: #2271b1;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .business-profile-form-wrapper {
        margin: 20px auto;
        padding: 10px;
    }

    .business-profile-form-container {
        padding: 25px;
        border-radius: 12px;
    }

    .business-profile-form-container::before {
        height: 3px;
    }

    .business-profile-form h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .business-profile-form h2::after {
        width: 40px;
        height: 2px;
    }

    .business-profile-form .form-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .business-profile-form .form-section h3 {
        font-size: 1.2rem;
    }

    .services-checkboxes {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-checkbox {
        padding: 10px 12px;
    }

    .submit-business-profile {
        width: 100%;
        padding: 16px 30px;
        font-size: 16px;
    }

    .form-actions {
        margin-top: 30px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .business-profile-form-container {
        padding: 20px;
    }

    .business-profile-form h2 {
        font-size: 1.6rem;
    }

    .business-profile-form .form-section {
        padding: 15px;
    }

    .business-profile-form input[type="text"],
    .business-profile-form input[type="email"],
    .business-profile-form input[type="url"],
    .business-profile-form textarea,
    .business-profile-form select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}