/**
 * ManageMore Registration Form Styles
 *
 * Matches the Ultimate Member registration form styling
 */

/* Form Wrapper */
.mmh-registration-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.mmh-registration-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Section Headers - Gold/Black line style */
.mmh-section {
    margin-bottom: 30px;
}

.mmh-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.mmh-section-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #c9a227 0%, #1a1a1a 100%);
}

.mmh-section-line:last-child {
    background: linear-gradient(90deg, #1a1a1a 0%, #c9a227 100%);
}

.mmh-section-title {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-transform: none;
    white-space: nowrap;
    padding: 0 10px;
}

/* Two Column Layout - Side by Side (default) */
.mmh-two-columns {
    display: flex;
    gap: 40px;
}

.mmh-column {
    flex: 1;
}

/* Vertical Layout */
.mmh-layout-vertical .mmh-two-columns {
    flex-direction: column;
    gap: 0;
}

.mmh-layout-vertical .mmh-column {
    flex: none;
    width: 100%;
}

.mmh-layout-vertical .mmh-column + .mmh-column {
    margin-top: 20px;
}

/* Form Fields */
.mmh-field {
    margin-bottom: 20px;
}

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

.mmh-field .required {
    color: #e74c3c;
}

.mmh-field input[type="text"],
.mmh-field input[type="email"],
.mmh-field input[type="password"],
.mmh-field input[type="tel"],
.mmh-field input[type="date"],
.mmh-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.mmh-field input:focus,
.mmh-field select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.mmh-field input::placeholder {
    color: #999;
}

/* Checkbox Fields */
.mmh-checkbox-field label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.mmh-checkbox-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* License Grid - 2x2 layout */
.mmh-license-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mmh-license-column {
    /* Individual license column */
}

/* Upload Button */
.mmh-upload-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mmh-upload-btn:hover {
    background-color: #2980b9;
}

.mmh-filename {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.mmh-filename.mmh-file-error {
    color: #e74c3c;
    font-weight: 500;
}

.mmh-upload-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* State input - uppercase */
.mmh-state-input {
    text-transform: uppercase;
}

/* City/State/Zip Row */
.mmh-csz-row {
    display: flex;
    gap: 15px;
}

.mmh-csz-row .mmh-field {
    margin-bottom: 20px;
}

.mmh-csz-row .mmh-field-city {
    flex: 2;
}

.mmh-csz-row .mmh-field-state {
    flex: 1;
    min-width: 100px;
}

.mmh-csz-row .mmh-field-postcode {
    flex: 1;
    min-width: 100px;
}

/* Submit Button */
.mmh-submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.mmh-submit-btn {
    display: inline-block;
    padding: 15px 60px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mmh-submit-btn:hover {
    background-color: #2980b9;
}

.mmh-submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Error Messages */
.mmh-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.mmh-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmh-errors li {
    color: #721c24;
    font-size: 14px;
    padding: 5px 0;
}

.mmh-errors li:before {
    content: "\26A0  ";
}

.mmh-error {
    color: #721c24;
    margin: 0;
}

/* Success Messages */
.mmh-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.mmh-success p {
    color: #155724;
    margin: 0;
    font-size: 14px;
}

/* Login Link */
.mmh-login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.mmh-login-link a {
    color: #3498db;
    text-decoration: none;
}

.mmh-login-link a:hover {
    text-decoration: underline;
}

/* Logged in message */
.mmh-logged-in-message {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.mmh-logged-in-message a {
    color: #3498db;
}

/* Shipping fields toggle */
.mmh-shipping-fields.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mmh-two-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .mmh-license-grid {
        grid-template-columns: 1fr;
    }
    
    .mmh-csz-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mmh-csz-row .mmh-field-city,
    .mmh-csz-row .mmh-field-state,
    .mmh-csz-row .mmh-field-postcode {
        flex: none;
        width: 100%;
    }
    
    .mmh-section-header {
        flex-wrap: wrap;
    }
    
    .mmh-section-line {
        display: none;
    }
    
    .mmh-section-title {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 2px solid #c9a227;
    }
}

/* Honeypot field - keep hidden from humans */
.mmh-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* WooCommerce compatibility */
.woocommerce .mmh-registration-form-wrapper {
    max-width: 100%;
}

.woocommerce .mmh-field input[type="text"],
.woocommerce .mmh-field input[type="email"],
.woocommerce .mmh-field input[type="password"],
.woocommerce .mmh-field select {
    height: auto;
}
