/* ════════════════════════════════════════════════════════
   WP CODER — CSS TAB
   Contact Page · Urdu Version (RTL · Nastaliq)
   All selectors prefixed "ur-" to avoid theme conflicts.

   FONT: Uses "Noto Nastaliq Urdu" from Google Fonts.
   To use Jameel Noori Nastaleeq instead:
     1. Upload the .ttf file to your WP Media Library
     2. Add @font-face { font-family:'Jameel Noori Nastaleeq';
            src: url('YOUR-FILE-URL') format('truetype'); }
     3. Replace every 'Noto Nastaliq Urdu' below with
        'Jameel Noori Nastaleeq'
   ════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
.ur-container {
    --ur-gold:          #D4AF37;
    --ur-dark-green:    #0d4d2d;
    --ur-white:         #ffffff;
    --ur-light-gray:    #f8f9fa;
    --ur-text-gray:     #666;
    --ur-error-red:     #e74c3c;
    --ur-success-green: #27ae60;
}

/* ── Base Container ─────────────────────────────────────── */
.ur-container {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2;          /* Nastaliq glyphs need extra vertical room */
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────── */
.ur-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    animation: urFadeInDown 0.8s ease;
}

@keyframes urFadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ur-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--ur-dark-green);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.ur-header h1:hover {
    color: var(--ur-gold);
    transform: scale(1.05);
    text-shadow: 2px 2px 10px rgba(212, 175, 55, 0.3);
}

.ur-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--ur-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ur-header h1:hover::after {
    width: 150px;
    background: var(--ur-dark-green);
}

.ur-header p {
    font-size: 1.1rem;
    color: var(--ur-text-gray);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.ur-header p:hover {
    color: var(--ur-dark-green);
    transform: scale(1.02);
}

/* ── Main Grid ──────────────────────────────────────────── */
.ur-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* ── Form Card ──────────────────────────────────────────── */
.ur-contact-form-section {
    background: var(--ur-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ur-contact-form-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ur-contact-form-section:hover::before { opacity: 1; }

.ur-contact-form-section:hover {
    box-shadow: 0 15px 40px rgba(13, 77, 45, 0.2);
    transform: translateY(-5px);
}

.ur-contact-form-section h2 {
    font-size: 1.6rem;
    color: var(--ur-dark-green);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ur-contact-form-section h2:hover {
    color: var(--ur-gold);
    transform: translateX(-10px); /* RTL: slides right-ward visually */
}

/* ── Form Groups ─────────────────────────────────────────── */
.ur-form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.ur-form-group label {
    display: block;
    font-weight: 500;
    color: var(--ur-dark-green);
    margin-bottom: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ur-form-group:hover label {
    color: var(--ur-gold);
    transform: translateX(-5px);
}

.ur-form-group label span {
    color: var(--ur-error-red);
}

.ur-form-group input,
.ur-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    text-align: right;
    line-height: 2;
    transition: all 0.3s ease;
    background: var(--ur-light-gray);
    box-sizing: border-box;
}

.ur-form-group input:hover,
.ur-form-group textarea:hover {
    border-color: var(--ur-gold);
    transform: scale(1.01);
}

.ur-form-group input:focus,
.ur-form-group textarea:focus {
    outline: none;
    border-color: var(--ur-gold);
    background: var(--ur-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

.ur-form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* ── Error States ────────────────────────────────────────── */
.ur-error-message {
    color: var(--ur-error-red);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 1.8;
}

.ur-form-group.error input,
.ur-form-group.error textarea {
    border-color: var(--ur-error-red);
    animation: urShake 0.5s ease;
}

@keyframes urShake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(10px); }
    75%       { transform: translateX(-10px); }
}

.ur-form-group.error .ur-error-message {
    display: block;
    animation: urFadeIn 0.3s ease;
}

@keyframes urFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Submit Button ───────────────────────────────────────── */
.ur-submit-btn {
    background: var(--ur-dark-green);
    color: var(--ur-white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Noto Nastaliq Urdu', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* RTL shimmer: starts from the right edge */
.ur-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--ur-gold);
    transition: right 0.3s ease;
    z-index: 0;
}

.ur-submit-btn:hover::before { right: 0; }

.ur-submit-btn span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ur-submit-btn:hover span {
    color: var(--ur-dark-green);
    font-weight: 700;
}

.ur-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 77, 45, 0.3);
}

.ur-submit-btn:active   { transform: translateY(0) scale(0.98); }
.ur-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ── Contact Details Column ──────────────────────────────── */
.ur-contact-details-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ur-contact-info-card,
.ur-social-media-card {
    background: var(--ur-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* RTL shimmer: sweep from right to left */
.ur-contact-info-card::before,
.ur-social-media-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: right 0.5s ease;
}

.ur-contact-info-card:hover::before,
.ur-social-media-card:hover::before { right: 100%; }

.ur-contact-info-card:hover,
.ur-social-media-card:hover {
    box-shadow: 0 15px 40px rgba(13, 77, 45, 0.2);
    transform: translateY(-5px);
}

.ur-contact-info-card h2,
.ur-social-media-card h2 {
    font-size: 1.6rem;
    color: var(--ur-dark-green);
    margin-bottom: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ur-contact-info-card:hover h2,
.ur-social-media-card:hover h2 {
    color: var(--ur-gold);
    transform: translateX(-10px);
}

/* ── Info Items ──────────────────────────────────────────── */
.ur-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--ur-light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ur-info-item:hover {
    background: var(--ur-gold);
    transform: translateX(-10px) scale(1.02); /* RTL: slides inward */
}

.ur-info-item:hover .ur-info-icon {
    background: var(--ur-dark-green);
    color: var(--ur-gold);
    transform: rotate(360deg);
}

.ur-info-item:hover .ur-info-content h3,
.ur-info-item:hover .ur-info-content p,
.ur-info-item:hover .ur-info-content a {
    color: var(--ur-white);
}

.ur-info-icon {
    width: 50px;
    height: 50px;
    background: var(--ur-dark-green);
    color: var(--ur-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-left: 20px;  /* RTL: icon is on the right, space goes to its left */
    flex-shrink: 0;
    transition: all 0.5s ease;
}

.ur-info-content h3 {
    font-size: 1.05rem;
    color: var(--ur-dark-green);
    margin-bottom: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ur-info-content p,
.ur-info-content a {
    color: var(--ur-text-gray);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Phone/email numbers stay LTR but anchor to the right */
    direction: ltr;
    display: block;
    text-align: right;
}

.ur-info-content a:hover {
    color: var(--ur-dark-green);
    text-decoration: underline;
}

/* ── Social Media ────────────────────────────────────────── */
.ur-social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ur-social-icon {
    width: 50px;
    height: 50px;
    background: var(--ur-light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ur-dark-green);
    font-size: 1.3rem;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ur-social-icon::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.ur-social-icon:hover::before { width: 100px; height: 100px; }

.ur-social-icon:hover {
    transform: translateY(-8px) rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ur-social-icon i { position: relative; z-index: 1; }

.ur-facebook:hover { background: #1877f2; color: var(--ur-white); }
.ur-youtube:hover  { background: #FF0000; color: var(--ur-white); }

/* ── Map Section ─────────────────────────────────────────── */
.ur-map-section {
    background: var(--ur-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ur-map-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ur-map-section:hover::before { opacity: 1; }

.ur-map-section:hover {
    box-shadow: 0 15px 40px rgba(13, 77, 45, 0.2);
    transform: translateY(-5px);
}

.ur-map-section h2 {
    font-size: 1.6rem;
    color: var(--ur-dark-green);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ur-map-section:hover h2 {
    color: var(--ur-gold);
    transform: scale(1.05);
}

.ur-map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--ur-gold);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ur-map-container:hover {
    border-color: var(--ur-dark-green);
    box-shadow: 0 10px 30px rgba(13, 77, 45, 0.3);
    transform: scale(1.01);
}

.ur-map-container iframe { width: 100%; height: 100%; border: none; }

/* ── Success Message ─────────────────────────────────────── */
.ur-success-message {
    background: var(--ur-success-green);
    color: var(--ur-white);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1rem;
    line-height: 2;
}

.ur-success-message.show {
    display: flex;
    animation: urSlideInDown 0.5s ease;
}

@keyframes urSlideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ur-success-message i {
    font-size: 1.2rem;
    animation: urPulse 1s infinite;
    flex-shrink: 0;
}

@keyframes urPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* ── Honeypot ─────────────────────────────────────────────── */
.ur-honeypot-field {
    position: absolute;
    left: -9999px; top: -9999px;
    opacity: 0; height: 0;
    overflow: hidden; pointer-events: none;
}

/* ── Math CAPTCHA ─────────────────────────────────────────── */
.ur-captcha-group {
    background: var(--ur-light-gray);
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ur-captcha-group:hover { border-color: var(--ur-gold); }

.ur-captcha-label {
    font-weight: 500;
    color: var(--ur-dark-green);
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 2;
    display: block;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.ur-required { color: var(--ur-error-red); }

.ur-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ur-captcha-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ur-dark-green);
    background: var(--ur-white);
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid var(--ur-gold);
    white-space: nowrap;
    /* Numbers stay LTR-readable inside an RTL container */
    direction: ltr;
    font-family: 'Courier New', monospace;
}

.ur-captcha-input {
    width: 90px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    direction: ltr;
    transition: all 0.3s ease;
    background: var(--ur-white);
    box-sizing: border-box;
}

.ur-captcha-input:focus {
    outline: none;
    border-color: var(--ur-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.ur-captcha-refresh {
    background: none;
    border: 2px solid var(--ur-dark-green);
    color: var(--ur-dark-green);
    cursor: pointer;
    font-size: 1rem;
    padding: 9px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ur-captcha-refresh:hover {
    background: var(--ur-gold);
    border-color: var(--ur-gold);
    color: var(--ur-white);
    transform: rotate(180deg);
}

.ur-captcha-error {
    color: var(--ur-error-red);
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 1.8;
}

.ur-captcha-group.error .ur-captcha-error {
    display: block;
    animation: urFadeIn 0.3s ease;
}

.ur-captcha-group.error .ur-captcha-input {
    border-color: var(--ur-error-red);
    animation: urShake 0.5s ease;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 968px) {
    .ur-contact-wrapper { grid-template-columns: 1fr; }
    .ur-header h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .ur-container { padding: 20px 15px; }
    .ur-header h1 { font-size: 1.9rem; }

    .ur-contact-form-section,
    .ur-contact-info-card,
    .ur-social-media-card,
    .ur-map-section { padding: 25px; }

    .ur-contact-form-section h2,
    .ur-contact-info-card h2,
    .ur-social-media-card h2,
    .ur-map-section h2 { font-size: 1.4rem; }

    .ur-info-item { flex-direction: column; text-align: center; }
    .ur-info-icon { margin: 0 auto 15px; }
    .ur-social-icons { justify-content: center; }
    .ur-map-container { height: 300px; }
    .ur-captcha-row { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 480px) {
    .ur-header h1 { font-size: 1.6rem; }
    .ur-submit-btn { padding: 12px 30px; font-size: 1.1rem; }

    .ur-contact-form-section,
    .ur-contact-info-card,
    .ur-social-media-card,
    .ur-map-section { padding: 20px; }
}
