/* Additional styles for I-Speak website */

/* Base transitions */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cloud-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* OTP Autofill Animation */
@keyframes otpPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Autofilled OTP input styling */
.pin-input.autofilled {
    background-color: #f8f4e5;
    border: 2px solid #4caf50 !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    animation: otpPulse 1.5s infinite;
}

/* Device icons hover effects */
.device-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.device-icon:hover {
    transform: translateY(-5px) !important;
    filter: brightness(1.2);
}

/* Background patterns */
.dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(#40E0D0 1px, transparent 1px),
                      radial-gradient(#FF69B4 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
    border-color: #40E0D0;
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

/* Button hover effects */
button[type="submit"] {
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(64, 224, 208, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Disclaimer text styling */
.cptpl_price {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 1rem 0;
    padding: 0 1rem;
    max-width: 100%;
    word-wrap: break-word;
}

/* Footer links styling */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
}

.footer-link {
    display: block;
    margin: 0.25rem 0;
    padding: 0.25rem 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    /* Reduce overall spacing */
    body {
        padding: 0.5rem;
    }
    
    /* Make container take less vertical space */
    .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    /* Reduce logo size */
    .logo-container {
        height: 60px;
        margin-bottom: 1rem;
    }
    
    /* Reduce promotional text spacing */
    .text-lg.mb-8 {
        margin-bottom: 0.75rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Make cloud icon smaller */
    .icon-container {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .icon-container .bg-white {
        padding: 0.75rem !important;
    }
    
    .icon-container svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Reduce form spacing */
    #formTitle {
        margin-bottom: 0.5rem !important;
        font-size: 1rem !important;
    }
    
    .mb-6 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Make device icons smaller and with less spacing */
    .device-icons-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        margin-bottom: 0.5rem !important;
    }
    
    .device-icon svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    .dots-pattern {
        background-size: 15px 15px;
    }
    
    /* Disclaimer text */
    .cptpl_price {
        font-size: 0.7rem;
        padding: 0 0.5rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .cptpl_price p {
        margin: 0.15rem 0;
    }
    
    /* Footer links */
    .cptpl_terms {
        margin-top: 0.25rem;
    }
}

/* Small mobile screens */
@media (max-width: 360px) {
    /* Further reduce sizes for very small screens */
    .logo-container {
        height: 50px;
    }
    
    .icon-container {
        width: 60px !important;
        height: 60px !important;
    }
    
    .cptpl_price {
        font-size: 0.65rem;
        padding: 0 0.25rem;
    }
    
    .device-icon svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    #phoneInputContainer, #pinInputContainer {
        height: 2.5rem;
    }
    
    button[type="submit"] {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Print styles */
@media print {
    .cloud-animation,
    .device-icons-container,
    .dots-pattern {
        display: none;
    }
}


.servicedesc {
    opacity: 0.001;
    pointer-events: none; 
    user-select: none;
}

/* Disabled button styles */
button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Countdown timer styles */
#resendCountdown {
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

#countdownTimer {
    font-weight: bold;
    color: #40E0D0;
}

/* Adjust countdown timer for mobile */
@media (max-width: 640px) {
    #resendCountdown {
        font-size: 0.8rem;
        padding: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    /* Adjust input padding for mobile */
    .phone-input, .pin-input {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Adjust PIN form buttons */
    #pinForm button {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Modal styles */
#almadarModal, #libyaShortcodeModal {
    animation: fadeIn 0.3s ease-in-out;
}

#almadarModal .bg-white, #libyaShortcodeModal .bg-white {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Error message styling */
.pin-error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid #c62828;
}

/* Subscribe CTA button font size */
.cptpl_subscribe {
    font-size: 1.5rem !important; /* 24px - much larger than default */
    font-weight: 700 !important;
}

/* Mobile responsive font size for Subscribe CTA */
@media (max-width: 640px) {
    .cptpl_subscribe {
        font-size: 1.375rem !important; /* 22px on mobile */
    }
}