/* /contact/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: block;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    /*max-width: 980px !important;
    background: white;
    border-radius: 15px;
    padding:10px;*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin:0 auto;
}

.header1 {
    background: linear-gradient(to right, #10b981, #3b82f6);
    color: white;
    padding: 25px;
    text-align: center;
}

.header1 h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header1 p {
    opacity: 0.9;
    font-size: 14px;
}

.form-container {
    padding: 30px;
    border: 1px solid #ccc;
    background: cornsilk;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.captcha-container {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.captcha-display {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 5px;
    color: #1f2937;
    background: #f3f4f6;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    user-select: none;
}

.captcha-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-refresh {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: #4b5563;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #10b981, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 13px;
    border-top: 1px solid #e5e7eb;
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Alert Success */
.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3b82f6;
    text-decoration: none;
    margin-top: 15px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Admin Styles */
.admin-container {
    max-width: 900px;
}

.message-list {
    margin-top: 20px;
}

.message-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
    transition: transform 0.3s;
}

.message-card:hover {
    transform: translateY(-2px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.message-name {
    font-weight: bold;
    color: #1f2937;
    font-size: 18px;
}

.message-time {
    color: #6b7280;
    font-size: 13px;
}

.message-email {
    color: #3b82f6;
    font-size: 14px;
    margin-bottom: 10px;
}

.message-content {
    color: #374151;
    line-height: 1.6;
}

.no-messages {
    text-align: center;
    color: #6b7280;
    padding: 40px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        border-radius: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .header1 {
        padding: 20px;
    }
    
    .header1 h1 {
        font-size: 20px;
    }
    
    .captcha-controls {
        display:grid;
    }
}