/* MailCore Pro Signup Form Styles */

.mailcore-signup-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#mailcore-signup-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mailcore-signup-form h2 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 28px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3232;
}

/* Password input group */
.password-input-group {
    display: flex;
    gap: 10px;
}

.password-input-group input {
    flex: 1;
}

.password-input-group button {
    padding: 12px 16px;
    white-space: nowrap;
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    font-size: 13px;
}

.strength-weak {
    color: #dc3232;
}

.strength-fair {
    color: #f56e28;
}

.strength-good {
    color: #ffb900;
}

.strength-strong {
    color: #46b450;
}

/* Password match status */
.password-match-status {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.match-success {
    color: #46b450;
}

.match-error {
    color: #dc3232;
}

/* Domain check status */
.domain-check-status {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.checking {
    color: #666;
}

.domain-available {
    color: #46b450;
}

.domain-unavailable,
.domain-error {
    color: #dc3232;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #0073aa;
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background-color: #005a87;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Form actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Messages */
.form-messages {
    margin-top: 20px;
}

.message-success,
.message-error {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.message-success {
    background-color: #ecf7ed;
    color: #2e7d32;
    border: 1px solid #46b450;
}

.message-error {
    background-color: #fce4e4;
    color: #c62828;
    border: 1px solid #dc3232;
}

/* reCAPTCHA container */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .mailcore-signup-form-container {
        padding: 10px;
    }
    
    #mailcore-signup-form {
        padding: 20px;
    }
    
    #mailcore-signup-form h2 {
        font-size: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .password-input-group {
        flex-wrap: wrap;
    }
    
    .password-input-group input {
        width: 100%;
        flex: none;
        margin-bottom: 10px;
    }
    
    .password-input-group button {
        flex: 1;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
