/* Base styles */
.customer-registration-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.customer-registration-form input {
    display: block;
    margin-bottom: 15px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.customer-registration-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    border: none;
    transition: background-color 0.3s ease;
}

.customer-registration-form input[type="submit"]:hover {
    background-color: #005177;
}

.customer-registration-form input[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Message styles */
.registration-error,
.registration-success,
.validation-pending,
.mdn-validation-status {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    box-sizing: border-box;
    display: none; /* Hide by default */
}

/* Only show when content is added via JavaScript */
.registration-error:not(:empty),
.registration-success:not(:empty),
.validation-pending:not(:empty),
.mdn-validation-status:not(:empty) {
    display: block;
}

.registration-error {
    background-color: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
}

.registration-success {
    background-color: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
}

.validation-pending {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
}

.checkmark {
    color: #2e7d32;
    font-weight: bold;
    margin-right: 5px;
}

/* Add warning style */
.registration-warning {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    padding: 5px;
}

.warning-icon {
    color: #ff9800;
    font-weight: bold;
    margin-right: 5px;
}

/* Responsive breakpoints */
@media screen and (max-width: 768px) {
    .customer-registration-form {
        padding: 15px;
        width: 90% !important;
        max-width: none;
    }

    .customer-registration-form input,
    .registration-error,
    .registration-success,
    .validation-pending,
    .mdn-validation-status {
        width: 90% !important;
    }
}

@media screen and (max-width: 480px) {
    .customer-registration-form {
        padding: 15px;
    }

    .customer-registration-form input {
        margin-bottom: 12px;
        padding: 10px;
    }

    .registration-error,
    .registration-success,
    .validation-pending {
        font-size: 14px;
        padding: 10px;
    }
}

@media screen and (max-width: 412px) {
    .customer-registration-form {
        padding: 10px;
    }

    .customer-registration-form input,
    .registration-error,
    .registration-success,
    .validation-pending,
    .mdn-validation-status {
        width: 90% !important;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Add this to your existing CSS */
.customer-registration-form .name-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.customer-registration-form .name-fields input {
    flex: 1;
    margin-bottom: 0;
}

/* Update responsive styles for name fields */
@media screen and (max-width: 768px) {
    .customer-registration-form .name-fields {
        width: 90% !important;
    }
    
    .customer-registration-form .name-fields input {
        width: 100% !important;
    }
}

@media screen and (max-width: 480px) {
    .customer-registration-form .name-fields {
        flex-direction: column;
        gap: 12px;
    }
}

/* Add these styles to your existing CSS */
.secondary-lines-manager {
    margin: 40px 0;
}

.secondary-lines-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    width: 50%;
}

.secondary-lines-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
}

.add-secondary-line {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-secondary-line input {
    margin-right: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-secondary-line button,
.remove-line {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#validate-new-line {
    background-color: #f7f7f7;
    margin-right: 10px;
}

#add-new-line {
    background-color: #0073aa;
    color: white;
}

#add-new-line:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.remove-line {
    background-color: #dc3232;
    color: white;
} 