/**
 * Phone Coupon for WooCommerce - Frontend Styles
 */

.phone-coupon-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: #0D0D0D;
    color: #ffffff;
}

.phone-coupon-form-wrapper {
    background-color: #0D0D0D;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.phone-coupon-title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #c8993e;
    text-align: center;
}

.phone-coupon-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: #d0d0d0;
    text-align: center;
}

.phone-coupon-field {
    margin-bottom: 15px;
}

.phone-coupon-field input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333333;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    direction: ltr;
}

.phone-coupon-field input[type="tel"]::placeholder {
    color: #aaaaaa;
}

.phone-coupon-field input[type="tel"]:focus {
    outline: none;
    border-color: #c8993e;
    box-shadow: 0 0 0 3px rgba(200, 153, 62, 0.25);
}

.phone-coupon-submit {
    text-align: center;
}

.phone-coupon-button {
    background-color: #c8993e;
    color: #0D0D0D;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
}

.phone-coupon-button:hover {
    background-color: #b88235;
}

.phone-coupon-button:active {
    transform: translateY(1px);
}

.phone-coupon-message {
    margin: 0;
    padding: 0;
    border-radius: 0;
    text-align: center;
}

.phone-coupon-message.error {
    background-color: #3b1215;
    color: #ffb3b8;
    border: 1px solid #6b1d23;
}

.phone-coupon-message.success {
    background-color: #11391b;
    color: #b2f5c8;
    border: 1px solid #1f6f39;
}

.phone-coupon-success {
    text-align: center;
    padding: 20px;
    background-color: #11391b;
    color: #b2f5c8;
    border-radius: 4px;
    margin-top: 20px;
}

.phone-coupon-code strong { color: #c8993e; }

.phone-coupon-loader {
    text-align: center;
    margin-top: 15px;
}

.phone-coupon-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    border-top-color: #c8993e;
    animation: phone-coupon-spin 1s ease-in-out infinite;
}

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

/* RTL Support */
html[dir="rtl"] .phone-coupon-container { direction: rtl; }
.rtl .phone-coupon-field input[type="tel"] {
    direction: ltr;
    text-align: right;
}

/* Responsive styles */
@media (max-width: 480px) {
    .phone-coupon-form-wrapper {
        padding: 15px;
    }
    
    .phone-coupon-title {
        font-size: 20px;
    }
    
    .phone-coupon-description {
        font-size: 14px;
    }
    
    .phone-coupon-field input[type="tel"],
    .phone-coupon-button {
        font-size: 14px;
        padding: 10px;
    }
}
