
@font-face {
  font-family: "BDRegular";
  src: url(/fonts/BDRegular.otf) format("opentype"); 
  font-weight: normal;
  font-style: normal;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;

    bottom: 0 !important;
    height: 150% !important;

    background-image: 
    radial-gradient(#9d8871 7px, transparent 8px),
    radial-gradient(#9d8871 7px, transparent 8px);
    background-size: 34px 34px;
    background-position: 17px 0, 17px 0;
    opacity: 60%;

    transform: rotate(8deg) translate(-100px, -280px);      /* <-- Positive number moves dots DOWN (try 50px, 150px, 300px) */ /* CHANGE THIS DEGREE (e.g., 15deg, 30deg, 45deg) */
    transform-origin: center;
    
    -webkit-mask-image: linear-gradient(to top,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.7) 15%,
    rgba(0,0,0,0.3) 35%,
    rgba(0,0,0,0) 60%)
    ;
    mask-image: linear-gradient(to top,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.7) 15%,
    rgba(0,0,0,0.3) 35%,
    rgba(0,0,0,0) 60%)
     ;

    

    z-index: 1;
    pointer-events: none;
}

.container {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height:60vh;
    position: relative;
 
    
}
.mail-container {
    width: 500px;
    padding: 5px 30px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background-color: #ffffff;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    
}
h4{
    margin-top: 5px;
    font-size: 40px;
    text-align: center;
    font-family: "BDRegular", BDRegular;
    font-weight: 100;;
    line-height: 1.4;
    width: 100%;
    color: #f48ba1;
    
}
form[name="contact-form"] {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    font-size: 15px;
    border: 1px solid #ffdde1;

    text-align: left;
    align-self: flex-start;
}
textarea{
    resize: none;
}
#submit{
    border: none;
    background-color: #ffdde1;
    color: #9d8871;
    width: 250px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-family: "BDRegular", BDRegular;
    font-size: 1.1rem;
    cursor: pointer;

    align-self: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}
#submit:hover{
    background-color: #ec5d70;
    color: #ffffff;
}

/* custom prompt Message Styling */
.form-message {
    display: none;
    margin-bottom: 5px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: "BDRegular", BDRegular;
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.form-message.success {
    display: block;
    background-color: #9d8871;
    color: #ffdde1;
    border-radius: 10px;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #742655;
    border-radius: 10px;
}

/*===================

marble bg 

=============*/
.mail-img {
  width: 2250px;
  top: -315px;
  left: -1px;
  position: absolute;
  z-index: -1 !important;
}

/*=========================
TABLET & MOBILE RESPONSIVE STYLES
==========================*/
@media (max-width: 900px) {
 
  .links-container {
    top: 30px !important;
    left: 195px !important;           /* Pulls the container to the horizontal center */
    right: auto !important;         /* Clears the desktop right alignment */
    transform: translateX(-50%) !important; /* Perfectly centers it relative to its own width */
    gap: 40px !important;           /* Scales gap slightly so links fit on narrow phones */
    width: max-content !important;
  }

  .links-container a {
    font-size: 1rem;             /* Scales down font size slightly for mobile screens */
    white-space: nowrap !important;
    
    /* ADDS A DROP SHADOW BEHIND MOBILE NAV LINKS */
    text-shadow: 0px 2px 8px rgba(255, 255, 255, 0.9), 
                 0px 0px 4px rgba(255, 255, 255, 0.8) !important;
  }

html, body {
    overflow-y: auto !important;          
    height: auto !important;
  }

  .container {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 30px 0 40px 0 !important;    
    position: relative !important;
    display: block !important;
    overflow: visible !important;         
  }

 .mail-container {
    width: 90% !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: auto !important;
    padding: 25px 20px !important;
    box-sizing: border-box !important;
    
    position: relative !important;
    top: 0 !important;                    
    left: auto !important;
    transform: none !important;
    margin: 130px auto 40px auto !important; /* INCREASED TOP MARGIN (adjust 90px up or down to taste) */
    z-index: 3 !important;
    
    overflow: visible !important;         
  }

  h4 {
    font-size: 26px !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
  }

  input[type="text"], 
  textarea {
    width: 100% !important;
    font-size: 16px !important;          
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  textarea {
    height: 100px !important;
  }

  #submit {
    width: 100% !important;
    max-width: 250px !important;
    padding: 12px !important;
    font-size: 1rem !important;
    margin-top: 5px !important;
  }

  /* =========================
     MOBILE MARBLE BACKGROUND (FIXED TO VIEWPORT)
     ========================= */
  .mail-img {
    position: fixed !important;          /* Locks to screen, prevents document overflow */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important; 
    z-index: -2 !important;            
    pointer-events: none !important;
  }

  /* =========================
     DOTS BACKGROUND (FIXED TO VIEWPORT)
     ========================= */
  body::before {
    content: "" !important;
    position: fixed !important;          /* Locks to screen, zero bottom space */
    inset: 0 !important;
    width: 108vw !important;
    height: 105vh !important;
    top: 0 !important;
    
    background-size: 20px 20px !important; 
    background-image: 
      radial-gradient(#9d8871 4px, transparent 5px),
      radial-gradient(#9d8871 4px, transparent 5px) !important;
    background-position: 10px 0, 10px 0 !important;

    transform: rotate(5deg) !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }

}