/**
 * Provider Registration Form Styles
 */

/* Container and Layout */
.provider-registration-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Section */
.provider-header-section {
    width: 100%;
    text-align: center;
    padding: 60px 40px 40px;
    background-color: #f5f1eb; /* Light beige background */
    box-sizing: border-box;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
}

.provider-header-title {
    font-size: 36px;
    font-weight: bold;
    color: #5c2e1f; /* Dark brown/maroon */
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.provider-header-description {
    font-size: 18px;
    font-weight: normal;
    color: #5c2e1f; /* Dark brown/maroon */
    margin: 0;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.provider-registration-wrapper {
    display: flex;
    flex-direction: row;
    column-gap: 64px;
    row-gap: 32px;
    width: 100%;
    min-height: 100vh;
}

/* Left Column: Form (50%) */
.provider-form-column {
    width: 50%;
    background-color: #f5f1eb; /* Light beige background */
    padding: 40px 60px;
    box-sizing: border-box;
}

/* Right Column: Information (50%) - CMS Block */
.provider-right-column-content {
    width: 100%;
    color: #fff;
}

.provider-right-column-content h1,
.provider-right-column-content h2,
.provider-right-column-content h3,
.provider-right-column-content h4,
.provider-right-column-content h5,
.provider-right-column-content h6 {
    color: #fff;
    margin-top: 0;
}

.provider-right-column-content p {
    color: #f5f1eb;
    line-height: 1.6;
}

.provider-right-column-content a {
    color: #f5f1eb;
    text-decoration: underline;
}

.provider-right-column-content a:hover {
    color: #fff;
}

.provider-right-column-content img {
    max-width: 100%;
    height: auto;
}

/* Page Builder content in right column */
.provider-right-column-content [data-content-type],
.provider-right-column-content .pagebuilder-content-type {
    color: #fff;
}

/* Form Header */
.provider-form-header {
    margin-bottom: 30px;
}

.provider-form-title {
    font-size: 32px;
    font-weight: bold;
    color: #5c2e1f; /* Dark brown */
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.provider-form-subtitle {
    font-size: 16px;
    font-weight: normal;
    color: #5c2e1f; /* Dark brown */
    margin: 0;
}

.provider-section-title {
    font-size: 32px;
    font-weight: bold;
    color: #5c2e1f; /* Dark brown */
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Form Grid (2 columns) */
.provider-form-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Form Fields */
.provider-form .field {
    width: 100%;
    margin-bottom: 0;
}

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

.provider-form .label span {
    display: inline;
}

/* Asterisk for required fields - Magento native behavior */
.provider-form .field.required > .label:after,
.provider-form .field._required > .label:after {
    content: '*';
    color: #da370a; /* Magento default red color */
    font-size: 12px;
    margin: 0 0 0 4px;
}

.provider-form .control {
    width: 100%;
}

.provider-form input,
.provider-form textarea,
.provider-form select {
    width: 100%;
    @apply form-input-field;
}

.provider-form .input-text:focus {
    outline: none;
    border-color: #5c2e1f;
}

/* Select styles removed - using browser default completely */

/* Privacy Policy Field */
.provider-privacy-field {
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.provider-privacy-field .checkbox {
    margin-top: 4px;
    flex-shrink: 0;
}

.provider-privacy-field .label {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.privacy-policy-link {
    color: #5c2e1f;
    text-decoration: underline;
}

.privacy-policy-link:hover {
    color: #8b4513;
}

/* Submit Button */
.provider-submit-wrapper {
    margin-top: 30px;
    text-align: center;
}

.provider-submit-button {
    background-color: #8b0000; /* Dark red */
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.provider-submit-button:hover {
    background-color: #a52a2a;
}

.provider-submit-button:active {
    background-color: #6b0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .provider-registration-wrapper {
        flex-direction: column;
    }
    
    .provider-form-column,
    .provider-info-column {
        width: 100%;
        padding: 30px 20px;
    }
    
    .provider-form-grid {
        grid-template-columns: 1fr;
    }
    
    .provider-form-title,
    .provider-section-title {
        font-size: 24px;
    }
}

/* Error Messages */
.provider-form .mage-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.provider-form .input-text.mage-error {
    border-color: #d32f2f;
}

/* System Messages (Success/Error) */
.provider-form-column .messages {
    margin-bottom: 30px;
}

.provider-form-column .message {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.provider-form-column .message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.provider-form-column .message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.provider-form-column .message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
