.bigdmedia-form-container {
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bigdmedia-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bigdmedia-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.bigdmedia-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.bigdmedia-form .form-group.half-width {
    flex: 0 0 calc(50% - 10px);
}

.bigdmedia-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bigdmedia-form input,
.bigdmedia-form select,
.bigdmedia-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

/* International Phone Input Styling */
.bigdmedia-form .iti {
    width: 100% !important;
    display: block;
}

.bigdmedia-form .iti__tel-input {
    width: 100% !important;
    padding: 15px 18px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    padding-left: 60px !important;
}

.bigdmedia-form .iti__flag-container {
    top: 2px !important;
    bottom: 2px !important;
    left: 2px !important;
    border-radius: 6px 0 0 6px !important;
}

.bigdmedia-form .iti__selected-flag {
    padding: 0 8px 0 12px !important;
    border-radius: 6px 0 0 6px !important;
    background: #f8f9fa !important;
    border-right: 1px solid #e1e5e9 !important;
}

.bigdmedia-form .iti__arrow {
    border-top-color: #6c757d !important;
}

.bigdmedia-form .iti__tel-input:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
    outline: none !important;
}

.bigdmedia-form .iti__tel-input.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.bigdmedia-form .iti__country-list {
    max-height: 200px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e1e5e9 !important;
}

.bigdmedia-form .iti__country:hover {
    background-color: #f8f9fa !important;
}

.bigdmedia-form .iti__country.iti__highlight {
    background-color: #3498db !important;
}

.bigdmedia-form input:focus,
.bigdmedia-form select:focus,
.bigdmedia-form textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.bigdmedia-form input:hover,
.bigdmedia-form select:hover,
.bigdmedia-form textarea:hover {
    border-color: #bdc3c7;
}

.bigdmedia-form .submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.bigdmedia-form .submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1abc9c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.bigdmedia-form .submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
}

.bigdmedia-form .submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: pulse 1.5s infinite;
}

.bigdmedia-form .form-message {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.bigdmedia-form .form-message.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: 2px solid #27ae60;
}

.bigdmedia-form .form-message.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid #c0392b;
}

.bigdmedia-form input.error,
.bigdmedia-form select.error,
.bigdmedia-form textarea.error {
    border-color: #e74c3c;
    background: #fdf2f2;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.bigdmedia-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.bigdmedia-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%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 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 16px;
    background-color: #f8f9fa;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 45px;
    cursor: pointer;
}

.bigdmedia-form select:focus {
    background-color: #ffffff;
}

.bigdmedia-form select:hover {
    background-color: #ffffff;
}

/* Override jQuery UI selectmenu styles */
.bigdmedia-form-container .ui-selectmenu-button {
    width: 100% !important;
    height: auto !important;
    padding: 15px 18px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: #f8f9fa !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    text-align: left !important;
    font-weight: normal !important;
}

.bigdmedia-form-container .ui-selectmenu-button:hover {
    border-color: #bdc3c7 !important;
    background-color: #ffffff !important;
}

.bigdmedia-form-container .ui-selectmenu-button:focus,
.bigdmedia-form-container .ui-selectmenu-button.ui-state-focus {
    outline: none !important;
    border-color: #3498db !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
    transform: translateY(-1px) !important;
}

.bigdmedia-form-container .ui-selectmenu-button .ui-selectmenu-text {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
}

.bigdmedia-form-container .ui-selectmenu-button .ui-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%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 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    background-position: center !important;
    width: 16px !important;
    height: 16px !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Force original select to be visible and remove jQuery UI */
.bigdmedia-form select {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
}

/* Hide jQuery UI selectmenu completely in this form */
.bigdmedia-form-container .ui-selectmenu-button {
    display: none !important;
}

.char-counter {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    text-align: right;
    font-weight: 500;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .bigdmedia-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .bigdmedia-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .bigdmedia-form .form-group.half-width {
        flex: 1;
    }
    
    .bigdmedia-form-container h3 {
        font-size: 24px;
    }
    
    .bigdmedia-form input,
    .bigdmedia-form select,
    .bigdmedia-form textarea {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .bigdmedia-form .submit-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bigdmedia-form-container {
        padding: 15px;
    }
    
    .bigdmedia-form-container h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}