/**
 * BookPound SellerAddress
 * Styles for seller address section in registration form
 */

/* Seller Address Section Container */
.seller-address-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Section Title */
.seller-address-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #1979c3;
    display: flex;
    align-items: center;
}

.seller-address-title::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    margin-right: 10px;
    color: #1979c3;
}

/* Section Description */
.seller-address-description {
    font-size: 14px;
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.6;
    background: #e8f4fc;
    padding: 12px 15px;
    border-radius: 5px;
    border-left: 4px solid #1979c3;
}

/* Form Fields */
.seller-address-section .field {
    margin-bottom: 20px;
}

.seller-address-section .field:last-child {
    margin-bottom: 0;
}

/* Required Field Indicator */
.seller-address-section .field.required>.label>span::after {
    content: ' *';
    color: #e02b27;
    font-weight: bold;
    font-size: 14px;
}

/* Labels */
.seller-address-section .label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Input Fields */
.seller-address-section .control input[type="text"],
.seller-address-section .control input[type="tel"],
.seller-address-section .control select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c2c2c2;
    border-radius: 5px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.seller-address-section .control input[type="text"]:hover,
.seller-address-section .control input[type="tel"]:hover,
.seller-address-section .control select:hover {
    border-color: #999999;
}

.seller-address-section .control input[type="text"]:focus,
.seller-address-section .control input[type="tel"]:focus,
.seller-address-section .control select:focus {
    border-color: #1979c3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 121, 195, 0.15);
}

/* Placeholder Styling */
.seller-address-section .control input::placeholder {
    color: #999999;
    font-style: italic;
}

/* Select Dropdown */
.seller-address-section .control select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.seller-address-section .control select::-ms-expand {
    display: none;
}

/* Error Styling */
.seller-address-section .mage-error,
.seller-address-section div.mage-error[generated] {
    color: #e02b27;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.seller-address-section .control input.mage-error,
.seller-address-section .control select.mage-error {
    border-color: #e02b27;
    background-color: #fef6f6;
}

.seller-address-section .control input.mage-error:focus,
.seller-address-section .control select.mage-error:focus {
    box-shadow: 0 0 0 3px rgba(224, 43, 39, 0.15);
}

/* Shop URL field is now visible - no hiding needed */
/* Pseudonym system handles display interception for customers */

/* Two-column layout for desktop */
@media (min-width: 768px) {
    .seller-address-section .field-row {
        display: flex;
        gap: 20px;
    }

    .seller-address-section .field-row .field {
        flex: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .seller-address-section {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .seller-address-title {
        font-size: 16px;
    }

    .seller-address-description {
        font-size: 13px;
        padding: 10px 12px;
    }

    .seller-address-section .control input[type="text"],
    .seller-address-section .control input[type="tel"],
    .seller-address-section .control select {
        padding: 10px 12px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* Animation for section appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seller-address-section {
    animation: fadeInUp 0.4s ease-out;
}

/* Success state */
.seller-address-section .control input.valid,
.seller-address-section .control select.valid {
    border-color: #28a745;
}

/* Loading state for form */
.seller-address-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.seller-address-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1979c3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}