/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== Body ===== */
body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    overflow-x: hidden;
}

/* ===== Form container ===== */
.container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== Heading ===== */
h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* ===== Inputs ===== */
input[type="email"],
input[type="hidden"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.6);
}

/* ===== Phone.Email widget ===== */
.pe_verify_email {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.pe_verify_email iframe,
.pe_verify_email div {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== Buttons ===== */
button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #667eea;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

button:hover,
button:active {
    background: #5563c1;
}

/* ===== Error & Success messages ===== */
.error {
    background: #ffe0e0;
    color: #e74c3c;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 14px;
    word-wrap: break-word;
}

.success {
    background: #e0ffe0;
    color: #2ecc71;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #b2f2bb;
    border-radius: 6px;
    font-size: 14px;
    word-wrap: break-word;
}

/* ===== Links ===== */
p {
    margin-top: 15px;
    font-size: 14px;
}

p a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

p a:hover,
p a:active {
    text-decoration: underline;
}

/* ===== Fade-in animation ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .container {
        padding: 35px 25px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 10px;
        max-width: 95%;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px 18px;
        max-width: 100%;
    }
    
    h2 {
        font-size: 20px;
    }
    
    button {
        padding: 12px;
    }
}